@@ -859,8 +859,7 @@ const spec_uniqueForeignKey = {
859
859
notNull: false,
860
860
hasDefault: false,
861
861
extensions: {
862
- tags: {},
863
- isIndexed: false
862
+ tags: {}
864
863
}
865
864
}
866
865
},
@@ -1067,8 +1066,7 @@ const compoundKeyCodec = recordCodec({
1067
1066
notNull: true,
1068
1067
hasDefault: false,
1069
1068
extensions: {
1070
- tags: {},
1071
- isIndexed: false
1069
+ tags: {}
1072
1070
}
1073
1071
},
1074
1072
person_id_1: {
@@ -9613,8 +9611,7 @@ const registry = makeRegistry({
9613
9611
extensions: {
9614
9612
tags: {
9615
9613
behavior: []
9616
- },
9617
- isIndexed: false
9614
+ }
9618
9615
}
9619
9616
}
9620
9617
},
@@ -13350,6 +13347,35 @@ type Person implements Node {
13350
13347
"""The method to use when ordering \`CompoundKey\`."""
13351
13348
orderBy: [CompoundKeysOrderBy!] = [PRIMARY_KEY_ASC]
13352
13349
): CompoundKeysConnection!
13350
+
13351
+ """Reads and enables pagination through a set of \`CompoundKey\`."""
13352
+ compoundKeysByPersonId2(
13353
+ """Only read the first \`n\` values of the set."""
13354
+ first: Int
13355
+
13356
+ """Only read the last \`n\` values of the set."""
13357
+ last: Int
13358
+
13359
+ """
13360
+ Skip the first \`n\` values from our \`after\` cursor, an alternative to cursor
13361
+ based pagination. May not be used with \`last\`.
13362
+ """
13363
+ offset: Int
13364
+
13365
+ """Read all values in the set before (above) this cursor."""
13366
+ before: Cursor
13367
+
13368
+ """Read all values in the set after (below) this cursor."""
13369
+ after: Cursor
13370
+
13371
+ """
13372
+ A condition to be used in determining which values should be returned by the collection.
13373
+ """
13374
+ condition: CompoundKeyCondition
13375
+
13376
+ """The method to use when ordering \`CompoundKey\`."""
13377
+ orderBy: [CompoundKeysOrderBy!] = [PRIMARY_KEY_ASC]
13378
+ ): CompoundKeysConnection!
13353
13379
}
13354
13380
13355
13381
type PersonComputedOutOutRecord {
@@ -14046,6 +14072,9 @@ A condition to be used against \`CompoundKey\` object types. All fields are test
14046
14072
for equality and combined with a logical ‘and.’
14047
14073
"""
14048
14074
input CompoundKeyCondition {
14075
+ """Checks for equality with the object’s \`personId2\` field."""
14076
+ personId2: Int
14077
+
14049
14078
"""Checks for equality with the object’s \`personId1\` field."""
14050
14079
personId1: Int
14051
14080
}
@@ -14055,6 +14084,8 @@ enum CompoundKeysOrderBy {
14055
14084
NATURAL
14056
14085
PRIMARY_KEY_ASC
14057
14086
PRIMARY_KEY_DESC
14087
+ PERSON_ID_2_ASC
14088
+ PERSON_ID_2_DESC
14058
14089
PERSON_ID_1_ASC
14059
14090
PERSON_ID_1_DESC
14060
14091
}
@@ -28627,6 +28658,39 @@ export const objects = {
28627
28658
}
28628
28659
}
28629
28660
},
28661
+ compoundKeysByPersonId2: {
28662
+ plan($record) {
28663
+ const $records = resource_compound_keyPgResource.find({
28664
+ person_id_2: $record.get("id")
28665
+ });
28666
+ return connection($records);
28667
+ },
28668
+ args: {
28669
+ first(_, $connection, arg) {
28670
+ $connection.setFirst(arg.getRaw());
28671
+ },
28672
+ last(_, $connection, val) {
28673
+ $connection.setLast(val.getRaw());
28674
+ },
28675
+ offset(_, $connection, val) {
28676
+ $connection.setOffset(val.getRaw());
28677
+ },
28678
+ before(_, $connection, val) {
28679
+ $connection.setBefore(val.getRaw());
28680
+ },
28681
+ after(_, $connection, val) {
28682
+ $connection.setAfter(val.getRaw());
28683
+ },
28684
+ condition(_condition, $connection, arg) {
28685
+ const $select = $connection.getSubplan();
28686
+ arg.apply($select, qbWhereBuilder);
28687
+ },
28688
+ orderBy(parent, $connection, value) {
28689
+ const $select = $connection.getSubplan();
28690
+ value.apply($select);
28691
+ }
28692
+ }
28693
+ },
28630
28694
computedComplex($in, args, _info) {
28631
28695
const {
28632
28696
selectArgs
@@ -30087,6 +30151,15 @@ export const inputObjects = {
30087
30151
return val === null ? sql`${expression} is null` : sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`;
30088
30152
}
30089
30153
});
30154
+ },
30155
+ personId2($condition, val) {
30156
+ $condition.where({
30157
+ type: "attribute",
30158
+ attribute: "person_id_2",
30159
+ callback(expression) {
30160
+ return val === null ? sql`${expression} is null` : sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`;
30161
+ }
30162
+ });
30090
30163
}
30091
30164
}
30092
30165
},
@@ -34091,6 +34164,18 @@ export const enums = {
34091
34164
});
34092
34165
queryBuilder.setOrderIsUnique();
34093
34166
},
34167
+ PERSON_ID_2_ASC(queryBuilder) {
34168
+ queryBuilder.orderBy({
34169
+ attribute: "person_id_2",
34170
+ direction: "ASC"
34171
+ });
34172
+ },
34173
+ PERSON_ID_2_DESC(queryBuilder) {
34174
+ queryBuilder.orderBy({
34175
+ attribute: "person_id_2",
34176
+ direction: "DESC"
34177
+ });
34178
+ },
34094
34179
PRIMARY_KEY_ASC(queryBuilder) {
34095
34180
compound_keyUniques[0].attributes.forEach(attributeName => {
34096
34181
queryBuilder.orderBy({
0 commit comments