@aws-amplify/api-graphql 4.0.1-api-v6-models.ce6e561.0 → 4.0.1-api-v6-models.8035dfc.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/api-graphql",
3
- "version": "4.0.1-api-v6-models.ce6e561.0+ce6e561",
3
+ "version": "4.0.1-api-v6-models.8035dfc.0+8035dfc",
4
4
  "description": "Api-graphql category of aws-amplify",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib-esm/index.js",
@@ -52,9 +52,9 @@
52
52
  ],
53
53
  "dependencies": {
54
54
  "@aws-amplify/amplify-api-next-types-alpha": "^0.2.0",
55
- "@aws-amplify/api-rest": "4.0.1-api-v6-models.ce6e561.0+ce6e561",
56
- "@aws-amplify/auth": "6.0.1-api-v6-models.ce6e561.0+ce6e561",
57
- "@aws-amplify/core": "6.0.1-api-v6-models.ce6e561.0+ce6e561",
55
+ "@aws-amplify/api-rest": "4.0.1-api-v6-models.8035dfc.0+8035dfc",
56
+ "@aws-amplify/auth": "6.0.1-api-v6-models.8035dfc.0+8035dfc",
57
+ "@aws-amplify/core": "6.0.1-api-v6-models.8035dfc.0+8035dfc",
58
58
  "@aws-sdk/types": "3.387.0",
59
59
  "graphql": "15.8.0",
60
60
  "rxjs": "^7.8.1",
@@ -127,5 +127,5 @@
127
127
  "<rootDir>/__tests__"
128
128
  ]
129
129
  },
130
- "gitHead": "ce6e56137612ed959a3fb114a966b0bc9d54ecfc"
130
+ "gitHead": "8035dfc20dda8f7b4d116616e89e72d889ceb5f1"
131
131
  }
@@ -129,7 +129,7 @@ export function generateModelsProperty<T extends Record<any, any> = never>(
129
129
  const flattenedResult = flattenItems(data)[key];
130
130
 
131
131
  if (options?.selectionSet) {
132
- return flattenedResult;
132
+ return { data: flattenedResult, extensions };
133
133
  } else {
134
134
  // TODO: refactor to avoid destructuring here
135
135
  const [initialized] = initializeModel(