diff --git a/packages/graphql/lib/schema-builder/storages/type-definitions.storage.ts b/packages/graphql/lib/schema-builder/storages/type-definitions.storage.ts index 8694b2916..f063327bc 100644 --- a/packages/graphql/lib/schema-builder/storages/type-definitions.storage.ts +++ b/packages/graphql/lib/schema-builder/storages/type-definitions.storage.ts @@ -63,6 +63,10 @@ export class TypeDefinitionsStorage { return this.unionTypeDefinitions.get(key); } + getAllUnionDefinitions(): UnionDefinition[] { + return Array.from(this.unionTypeDefinitions.values()); + } + addInterfaces(interfaceDefs: InterfaceTypeDefinition[]) { interfaceDefs.forEach((item) => this.interfaceTypeDefinitions.set(item.target, item),