You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: addressing missing key for unidirectional @hasmany on JS (#507)
* fix: addressing missing key for unidirectional hasmany, currently hardcoded only to test the approach works
* fix: implement methods to determine if implicit key is needed
* updating impl after some exploratory testing
* chore: adding additional tests, responding to PR feedback
* chore: responding to PR feedback, updating GSI name scheme to use parent model name
* fix: update gsi field name to use parent model field
Copy file name to clipboardExpand all lines: packages/appsync-modelgen-plugin/src/__tests__/visitors/__snapshots__/appsync-javascript-visitor.test.ts.snap
exports[`Javascript visitor with connected models of custom pk hasMany/belongsTo relation should generate correct declaration for hasMany uni-connection model with custom index 1`] = `
150
+
"import {ModelInit, MutableModel, __modelMeta__, CompositeIdentifier} from \\"@aws-amplify/datastore\\";
151
+
// @ts-ignore
152
+
import {LazyLoading, LazyLoadingDisabled, AsyncCollection} from \\"@aws-amplify/datastore\\";
exports[`Javascript visitor with connected models of custom pk hasOne/belongsTo relation should generate correct declaration when custom pk support is enabled 1`] = `
150
222
"import {ModelInit, MutableModel, __modelMeta__, CompositeIdentifier} from \\"@aws-amplify/datastore\\";
0 commit comments