@aws-amplify/graphql-transformer-core
Advanced tools
Comparing version 0.16.0 to 0.16.1-codegen-ui-q1-release.0
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.16.1-codegen-ui-q1-release.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.16.0...@aws-amplify/graphql-transformer-core@0.16.1-codegen-ui-q1-release.0) (2022-02-12) | ||
**Note:** Version bump only for package @aws-amplify/graphql-transformer-core | ||
# [0.16.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.15.7...@aws-amplify/graphql-transformer-core@0.16.0) (2022-01-31) | ||
@@ -8,0 +16,0 @@ |
@@ -322,3 +322,16 @@ "use strict"; | ||
const schema = fileAssets.get('schema.graphql') || ''; | ||
const resolverEntries = context.resolvers.collectResolvers(); | ||
const userOverriddenSlots = []; | ||
for (const [resolverName] of resolverEntries) { | ||
const userSlots = this.userDefinedSlots[resolverName] || []; | ||
userSlots.forEach(slot => { | ||
var _a; | ||
const fileName = (_a = slot.requestResolver) === null || _a === void 0 ? void 0 : _a.fileName; | ||
if (fileName && fileName in resolvers) { | ||
userOverriddenSlots.push(fileName); | ||
} | ||
}); | ||
} | ||
return { | ||
userOverriddenSlots, | ||
functions, | ||
@@ -325,0 +338,0 @@ pipelineFunctions, |
@@ -29,2 +29,3 @@ export default interface Template { | ||
schema: string; | ||
userOverriddenSlots: string[]; | ||
} | ||
@@ -31,0 +32,0 @@ export interface StackMapping { |
{ | ||
"name": "@aws-amplify/graphql-transformer-core", | ||
"version": "0.16.0", | ||
"version": "0.16.1-codegen-ui-q1-release.0", | ||
"description": "A framework to transform from GraphQL SDL to AWS CloudFormation.", | ||
@@ -86,3 +86,3 @@ "repository": { | ||
}, | ||
"gitHead": "ff708270297bee070340a3cff089e21444c60e06" | ||
"gitHead": "2b133fd2c6a840f6189449562adecf31fa1c5668" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
512928
5139