Skip to content

Commit 86e7780

Browse files
authoredDec 6, 2021
fix(appsync): remove 'id' suffix to union definition key (#17787)
Removing an unnecessary suffix from union definitions. Fixes: #17771 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent cd8a377 commit 86e7780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/@aws-cdk/aws-appsync/lib/schema-intermediate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ export class UnionType implements IIntermediateType {
381381
if (options.field && !(options.field.intermediateType instanceof ObjectType)) {
382382
throw new Error('Fields for Union Types must be Object Types.');
383383
}
384-
this.definition[options.field?.toString() + 'id'] = options.field;
384+
this.definition[options.field.toString()] = options.field;
385385
}
386386

387387
/**

0 commit comments

Comments
 (0)
Please sign in to comment.