@aws-amplify/graphql-function-transformer
Advanced tools
Comparing version 0.3.7 to 0.4.0-beta.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [0.4.0-beta.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-function-transformer@0.3.7...@aws-amplify/graphql-function-transformer@0.4.0-beta.0) (2021-07-29) | ||
### Features | ||
* capability injection for the vNext GraphQL Transformer ([#7735](https://github.com/aws-amplify/amplify-cli/issues/7735)) ([f3eae13](https://github.com/aws-amplify/amplify-cli/commit/f3eae13ab2848df398e26429abf985b756abcff2)) | ||
## [0.3.7](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-function-transformer@0.3.6...@aws-amplify/graphql-function-transformer@0.3.7) (2021-07-27) | ||
@@ -8,0 +19,0 @@ |
@@ -65,3 +65,3 @@ "use strict"; | ||
if (!createdResources.has(dataSourceId)) { | ||
const dataSource = context.api.addLambdaDataSource(dataSourceId, lambda.Function.fromFunctionAttributes(stack, `${dataSourceId}Function`, { | ||
const dataSource = context.api.host.addLambdaDataSource(dataSourceId, lambda.Function.fromFunctionAttributes(stack, `${dataSourceId}Function`, { | ||
functionArn: lambdaArnResource(env, config.name, config.region), | ||
@@ -74,3 +74,3 @@ }), {}, stack); | ||
if (func === undefined) { | ||
func = context.api.addAppSyncFunction(functionId, graphql_transformer_core_1.MappingTemplate.s3MappingTemplateFromString(graphql_mapping_template_1.printBlock(`Invoke AWS Lambda data source: ${dataSourceId}`)(graphql_mapping_template_1.obj({ | ||
func = context.api.host.addAppSyncFunction(functionId, graphql_transformer_core_1.MappingTemplate.s3MappingTemplateFromString(graphql_mapping_template_1.printBlock(`Invoke AWS Lambda data source: ${dataSourceId}`)(graphql_mapping_template_1.obj({ | ||
version: graphql_mapping_template_1.str('2018-05-29'), | ||
@@ -96,3 +96,3 @@ operation: graphql_mapping_template_1.str('Invoke'), | ||
if (resolver === undefined) { | ||
resolver = context.api.addResolver(config.resolverTypeName, config.resolverFieldName, graphql_transformer_core_1.MappingTemplate.s3MappingTemplateFromString(graphql_mapping_template_1.printBlock('Stash resolver specific context.')(graphql_mapping_template_1.compoundExpression([ | ||
resolver = context.api.host.addResolver(config.resolverTypeName, config.resolverFieldName, graphql_transformer_core_1.MappingTemplate.s3MappingTemplateFromString(graphql_mapping_template_1.printBlock('Stash resolver specific context.')(graphql_mapping_template_1.compoundExpression([ | ||
graphql_mapping_template_1.qref(`$ctx.stash.put("typeName", "${config.resolverTypeName}")`), | ||
@@ -99,0 +99,0 @@ graphql_mapping_template_1.qref(`$ctx.stash.put("fieldName", "${config.resolverFieldName}")`), |
{ | ||
"name": "@aws-amplify/graphql-function-transformer", | ||
"version": "0.3.7", | ||
"version": "0.4.0-beta.0", | ||
"description": "Amplify GraphQL @function transformer", | ||
@@ -30,4 +30,4 @@ "repository": { | ||
"dependencies": { | ||
"@aws-amplify/graphql-transformer-core": "0.7.2", | ||
"@aws-amplify/graphql-transformer-interfaces": "1.7.0", | ||
"@aws-amplify/graphql-transformer-core": "0.8.0-beta.0", | ||
"@aws-amplify/graphql-transformer-interfaces": "1.8.0-beta.0", | ||
"@aws-cdk/aws-lambda": "~1.72.0", | ||
@@ -57,3 +57,3 @@ "@aws-cdk/core": "~1.72.0", | ||
}, | ||
"gitHead": "5423bebc1112e58c404e54b43e50382e7268b19e" | ||
"gitHead": "9020153805bffae7cc7470bfc946b872d37a6470" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31185
+ Added@aws-amplify/graphql-transformer-core@0.8.0-beta.0(transitive)
+ Added@aws-amplify/graphql-transformer-interfaces@1.8.0-beta.0(transitive)
- Removed@aws-amplify/graphql-transformer-core@0.7.2(transitive)
- Removed@aws-amplify/graphql-transformer-interfaces@1.7.0(transitive)
Updated@aws-amplify/graphql-transformer-interfaces@1.8.0-beta.0