Skip to content

Commit 00d4f0f

Browse files
authored
Merge pull request #508 from aws-amplify/main
Release Codegen Repo
2 parents 1785c08 + 51fd6de commit 00d4f0f

18 files changed

+2251
-292
lines changed

packages/appsync-modelgen-plugin/schemas/introspection/1/ModelIntrospectionSchema.json

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,16 @@
5555
},
5656
"syncable": {
5757
"type": "boolean"
58+
},
59+
"primaryKeyInfo": {
60+
"$ref": "#/definitions/PrimaryKeyInfo"
5861
}
5962
},
6063
"required": [
6164
"name",
6265
"fields",
63-
"pluralName"
66+
"pluralName",
67+
"primaryKeyInfo"
6468
],
6569
"additionalProperties": false
6670
},
@@ -313,6 +317,29 @@
313317
"targetNames"
314318
]
315319
},
320+
"PrimaryKeyInfo": {
321+
"type": "object",
322+
"properties": {
323+
"isCustomPrimaryKey": {
324+
"type": "boolean"
325+
},
326+
"primaryKeyFieldName": {
327+
"type": "string"
328+
},
329+
"sortKeyFieldNames": {
330+
"type": "array",
331+
"items": {
332+
"type": "string"
333+
}
334+
}
335+
},
336+
"required": [
337+
"isCustomPrimaryKey",
338+
"primaryKeyFieldName",
339+
"sortKeyFieldNames"
340+
],
341+
"additionalProperties": false
342+
},
316343
"SchemaNonModels": {
317344
"$ref": "#/definitions/Record%3Cstring%2CSchemaNonModel%3E"
318345
},

0 commit comments

Comments
 (0)