Skip to content

Commit 772036f

Browse files
BryanPan342TikiTDO
authored andcommitted
fix(appsync): remove 'id' suffix to union definition key (aws#17787)
Removing an unnecessary suffix from union definitions. Fixes: aws#17771 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 47ec87a commit 772036f

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)