@aws-amplify/data-schema 1.20.3 → 1.20.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/runtime/internals/APIClient.js +6 -2
- package/dist/cjs/runtime/internals/APIClient.js.map +1 -1
- package/dist/esm/runtime/internals/APIClient.mjs +6 -2
- package/dist/esm/runtime/internals/APIClient.mjs.map +1 -1
- package/dist/meta/cjs.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/runtime/internals/APIClient.ts +6 -3
package/package.json
CHANGED
|
@@ -1156,9 +1156,12 @@ export function buildGraphQLVariables(
|
|
|
1156
1156
|
modelIntrospection,
|
|
1157
1157
|
),
|
|
1158
1158
|
).filter(([fieldName]) => {
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1159
|
+
// omit field from update input
|
|
1160
|
+
// if exists in fields and marked read only
|
|
1161
|
+
// if does not exist in fields but implicitly added to schema via ownership
|
|
1162
|
+
return fields[fieldName]
|
|
1163
|
+
? !fields[fieldName].isReadOnly
|
|
1164
|
+
: !resolveOwnerFields(modelDefinition).includes(fieldName);
|
|
1162
1165
|
}),
|
|
1163
1166
|
)
|
|
1164
1167
|
: {},
|