@aws-amplify/graphql-index-transformer 2.2.0-nov-14-cut.0 → 2.2.0-nov-14-cut-1.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/CHANGELOG.md +5 -1
- package/lib/resolvers/resolvers.js +2 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
@@ -3,7 +3,11 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
-
# [2.2.0-nov-14-cut.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-index-transformer@2.1.8...@aws-amplify/graphql-index-transformer@2.2.0-nov-14-cut.0) (2023-11-
|
6
|
+
# [2.2.0-nov-14-cut-1.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-index-transformer@2.1.8...@aws-amplify/graphql-index-transformer@2.2.0-nov-14-cut-1.0) (2023-11-15)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
- Change 'rds' to 'sql' in public-facing symbols ([#2069](https://github.com/aws-amplify/amplify-category-api/issues/2069)) ([ff374dd](https://github.com/aws-amplify/amplify-category-api/commit/ff374dd8398d3f1138a31669b1a5962122039437))
|
7
11
|
|
8
12
|
### Features
|
9
13
|
|
@@ -355,7 +355,7 @@ const updateResolversForIndex = (config, ctx, resolverMap) => {
|
|
355
355
|
exports.updateResolversForIndex = updateResolversForIndex;
|
356
356
|
const makeQueryResolver = (config, ctx, dbType) => {
|
357
357
|
var _a;
|
358
|
-
const {
|
358
|
+
const { SQLLambdaDataSourceLogicalID } = graphql_transformer_common_1.ResourceConstants.RESOURCES;
|
359
359
|
const isDynamoDB = dbType === graphql_transformer_core_1.DDB_DB_TYPE;
|
360
360
|
const { name, object, queryField } = config;
|
361
361
|
if (!(name && queryField)) {
|
@@ -365,7 +365,7 @@ const makeQueryResolver = (config, ctx, dbType) => {
|
|
365
365
|
const dbInfo = (0, exports.getDBInfo)(ctx, modelName);
|
366
366
|
let dataSourceName = `${object.name.value}Table`;
|
367
367
|
if (!isDynamoDB) {
|
368
|
-
dataSourceName =
|
368
|
+
dataSourceName = SQLLambdaDataSourceLogicalID;
|
369
369
|
}
|
370
370
|
const dataSource = ctx.api.host.getDataSource(dataSourceName);
|
371
371
|
const queryTypeName = ctx.output.getQueryTypeName();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-index-transformer",
|
3
|
-
"version": "2.2.0-nov-14-cut.0",
|
3
|
+
"version": "2.2.0-nov-14-cut-1.0",
|
4
4
|
"description": "Amplify GraphQL index and key transformers",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -28,15 +28,15 @@
|
|
28
28
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
|
-
"@aws-amplify/graphql-model-transformer": "2.3.0-nov-14-cut.0",
|
32
|
-
"@aws-amplify/graphql-transformer-core": "2.3.0-nov-14-cut.0",
|
33
|
-
"@aws-amplify/graphql-transformer-interfaces": "3.3.0-nov-14-cut.0",
|
31
|
+
"@aws-amplify/graphql-model-transformer": "2.3.0-nov-14-cut-1.0",
|
32
|
+
"@aws-amplify/graphql-transformer-core": "2.3.0-nov-14-cut-1.0",
|
33
|
+
"@aws-amplify/graphql-transformer-interfaces": "3.3.0-nov-14-cut-1.0",
|
34
34
|
"graphql": "^15.5.0",
|
35
35
|
"graphql-mapping-template": "4.20.12",
|
36
|
-
"graphql-transformer-common": "4.26.0-nov-14-cut.0"
|
36
|
+
"graphql-transformer-common": "4.26.0-nov-14-cut-1.0"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@aws-amplify/graphql-transformer-test-utils": "0.3.0-nov-14-cut.0"
|
39
|
+
"@aws-amplify/graphql-transformer-test-utils": "0.3.0-nov-14-cut-1.0"
|
40
40
|
},
|
41
41
|
"peerDependencies": {
|
42
42
|
"aws-cdk-lib": "^2.80.0",
|
@@ -64,5 +64,5 @@
|
|
64
64
|
}
|
65
65
|
}
|
66
66
|
},
|
67
|
-
"gitHead": "
|
67
|
+
"gitHead": "7957a8c3e87fee7fadb53c2705b9840940e8030c"
|
68
68
|
}
|