@aws-amplify/graphql-index-transformer
Advanced tools
Comparing version 0.2.0 to 0.2.1-beta.0
@@ -6,2 +6,14 @@ # Change Log | ||
## [0.2.1-beta.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-index-transformer@0.2.0...@aws-amplify/graphql-index-transformer@0.2.1-beta.0) (2021-08-06) | ||
### Bug Fixes | ||
* misc [@model](https://github.com/model) v2 VTL cleanup ([#7856](https://github.com/aws-amplify/amplify-cli/issues/7856)) ([98d81d8](https://github.com/aws-amplify/amplify-cli/commit/98d81d8e2e13fc1525389ba21e6ad4b372e671fb)) | ||
* use improved pluralization in graphql transformer v2 ([#7817](https://github.com/aws-amplify/amplify-cli/issues/7817)) ([38e2599](https://github.com/aws-amplify/amplify-cli/commit/38e25996ee00479031c88714af3b9d40ef9e079c)) | ||
# 0.2.0 (2021-07-30) | ||
@@ -8,0 +20,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.lookupResolverName = void 0; | ||
const graphql_transformer_common_1 = require("graphql-transformer-common"); | ||
function lookupResolverName(config, ctx, op) { | ||
@@ -23,3 +24,8 @@ const { object, modelDirective } = config; | ||
if (!resolverName) { | ||
resolverName = `${op}${object.name.value}${op === 'list' ? 's' : ''}`; | ||
if (op === 'list') { | ||
resolverName = `${op}${graphql_transformer_common_1.plurality(object.name.value, true)}`; | ||
} | ||
else { | ||
resolverName = `${op}${object.name.value}`; | ||
} | ||
} | ||
@@ -26,0 +32,0 @@ return resolverName; |
{ | ||
"name": "@aws-amplify/graphql-index-transformer", | ||
"version": "0.2.0", | ||
"version": "0.2.1-beta.0", | ||
"description": "Amplify GraphQL index and key transformers", | ||
@@ -30,12 +30,12 @@ "repository": { | ||
"dependencies": { | ||
"@aws-amplify/graphql-transformer-core": "0.8.0", | ||
"@aws-amplify/graphql-transformer-interfaces": "1.8.0", | ||
"@aws-amplify/graphql-transformer-core": "0.8.1-beta.0", | ||
"@aws-amplify/graphql-transformer-interfaces": "1.8.1-beta.0", | ||
"@aws-cdk/aws-appsync": "~1.72.0", | ||
"@aws-cdk/aws-dynamodb": "~1.72.0", | ||
"graphql": "^14.5.8", | ||
"graphql-mapping-template": "4.18.1", | ||
"graphql-transformer-common": "4.19.6" | ||
"graphql-mapping-template": "4.18.2-beta.0", | ||
"graphql-transformer-common": "4.19.7-beta.0" | ||
}, | ||
"devDependencies": { | ||
"@aws-amplify/graphql-model-transformer": "0.5.0", | ||
"@aws-amplify/graphql-model-transformer": "0.5.1-beta.0", | ||
"@aws-cdk/assert": "~1.72.0" | ||
@@ -58,3 +58,3 @@ }, | ||
}, | ||
"gitHead": "7564914b8bcdcb667b88789cbdaed9fdbc8cdb82" | ||
"gitHead": "047b541e0e6e005ebb798d69516c5170653c0d42" | ||
} |
Sorry, the diff of this file is not supported yet
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
69148
578
+ Added@aws-amplify/graphql-transformer-core@0.8.1-beta.0(transitive)
+ Added@aws-amplify/graphql-transformer-interfaces@1.8.1-beta.0(transitive)
+ Addedgraphql-mapping-template@4.18.2-beta.0(transitive)
+ Addedgraphql-transformer-common@4.19.7-beta.0(transitive)
- Removed@aws-amplify/graphql-transformer-core@0.8.0(transitive)
- Removed@aws-amplify/graphql-transformer-interfaces@1.8.0(transitive)
- Removedgraphql-mapping-template@4.18.1(transitive)
- Removedgraphql-transformer-common@4.19.6(transitive)
Updated@aws-amplify/graphql-transformer-interfaces@1.8.1-beta.0