Socket
Socket
Sign inDemoInstall

@aws-amplify/graphql-relational-transformer

Package Overview
Dependencies
Maintainers
7
Versions
411
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-amplify/graphql-relational-transformer - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1-graphql-vnext-dev-preview.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [0.4.1-graphql-vnext-dev-preview.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-relational-transformer@0.4.0...@aws-amplify/graphql-relational-transformer@0.4.1-graphql-vnext-dev-preview.0) (2021-11-12)
### Bug Fixes
* reintroduce connection stack in transformer v2 ([#8757](https://github.com/aws-amplify/amplify-cli/issues/8757)) ([d56e666](https://github.com/aws-amplify/amplify-cli/commit/d56e6666e66f3f740f7db60e2f422a6f5a7ead57))
# [0.4.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-relational-transformer@0.3.1...@aws-amplify/graphql-relational-transformer@0.4.0) (2021-11-11)

@@ -8,0 +19,0 @@

11

lib/resolvers.js

@@ -32,2 +32,3 @@ "use strict";

const utils_1 = require("./utils");
const CONNECTION_STACK = 'ConnectionStack';
const authFilter = graphql_mapping_template_1.ref('ctx.stash.authFilter');

@@ -79,3 +80,3 @@ function makeGetItemConnectionWithKeyResolver(config, ctx) {

])))), `${object.name.value}.${field.name.value}.res.vtl`));
resolver.mapToStack(table.stack);
resolver.mapToStack(getConnectionStack(ctx));
ctx.resolvers.addResolver(object.name.value, field.name.value, resolver);

@@ -131,3 +132,3 @@ }

])), `${object.name.value}.${field.name.value}.req.vtl`), graphql_transformer_core_1.MappingTemplate.s3MappingTemplateFromString(graphql_mapping_template_1.print(graphql_mapping_template_1.DynamoDBMappingTemplate.dynamoDBResponse(false, graphql_mapping_template_1.compoundExpression([graphql_mapping_template_1.iff(graphql_mapping_template_1.raw('!$result'), graphql_mapping_template_1.set(graphql_mapping_template_1.ref('result'), graphql_mapping_template_1.ref('ctx.result'))), graphql_mapping_template_1.raw('$util.toJson($result)')]))), `${object.name.value}.${field.name.value}.res.vtl`));
resolver.mapToStack(table.stack);
resolver.mapToStack(getConnectionStack(ctx));
ctx.resolvers.addResolver(object.name.value, field.name.value, resolver);

@@ -225,2 +226,8 @@ }

}
function getConnectionStack(ctx) {
if (ctx.stackManager.hasStack(CONNECTION_STACK)) {
return ctx.stackManager.getStack(CONNECTION_STACK);
}
return ctx.stackManager.createStack(CONNECTION_STACK);
}
//# sourceMappingURL=resolvers.js.map

14

package.json
{
"name": "@aws-amplify/graphql-relational-transformer",
"version": "0.4.0",
"version": "0.4.1-graphql-vnext-dev-preview.0",
"description": "Amplify GraphQL relational modeling transformers",

@@ -30,7 +30,7 @@ "repository": {

"dependencies": {
"@aws-amplify/graphql-auth-transformer": "0.2.0",
"@aws-amplify/graphql-index-transformer": "0.5.0",
"@aws-amplify/graphql-model-transformer": "0.7.0",
"@aws-amplify/graphql-transformer-core": "0.10.0",
"@aws-amplify/graphql-transformer-interfaces": "1.10.1",
"@aws-amplify/graphql-auth-transformer": "0.2.1-graphql-vnext-dev-preview.0",
"@aws-amplify/graphql-index-transformer": "0.5.1-graphql-vnext-dev-preview.0",
"@aws-amplify/graphql-model-transformer": "0.7.1-graphql-vnext-dev-preview.0",
"@aws-amplify/graphql-transformer-core": "0.11.0-graphql-vnext-dev-preview.0",
"@aws-amplify/graphql-transformer-interfaces": "1.10.2-graphql-vnext-dev-preview.0",
"@aws-cdk/aws-appsync": "~1.124.0",

@@ -61,3 +61,3 @@ "@aws-cdk/aws-dynamodb": "~1.124.0",

},
"gitHead": "59a73259b2d1b139b9478fbf03aacf3dc584e0c5"
"gitHead": "14d8c2c86d2dbf7876e4d351088c69563e5ba009"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc