@wundergraph/composition
Advanced tools
Comparing version 0.33.1 to 0.34.0
@@ -30,2 +30,3 @@ import { ConstDirectiveNode, DocumentNode, GraphQLSchema } from 'graphql'; | ||
federatedGraphSchema: GraphQLSchema; | ||
parentDefinitionDataByTypeName: Map<string, ParentDefinitionData>; | ||
subgraphConfigBySubgraphName: Map<string, SubgraphConfig>; | ||
@@ -32,0 +33,0 @@ shouldIncludeClientSchema?: boolean; |
@@ -238,3 +238,3 @@ "use strict"; | ||
} | ||
(0, utils_4.addEnumValueDataByNode)(parentData.enumValueDataByValueName, node, nf.errors, nf.directiveDefinitionByDirectiveName, nf.handledRepeatedDirectivesByHostPath, nf.originalParentTypeName); | ||
(0, utils_4.addEnumValueDataByNode)(parentData.enumValueDataByValueName, node, nf.errors, nf.directiveDefinitionByDirectiveName, nf.handledRepeatedDirectivesByHostPath, nf.originalParentTypeName, nf.subgraphName); | ||
}, | ||
@@ -241,0 +241,0 @@ leave() { |
@@ -17,2 +17,3 @@ import { ConstDirectiveNode, ConstValueNode, Kind, NamedTypeNode, OperationTypeDefinitionNode, OperationTypeNode, StringValueNode } from 'graphql'; | ||
persistedDirectivesData: PersistedDirectivesData; | ||
subgraphNames: Set<string>; | ||
description?: StringValueNode; | ||
@@ -27,2 +28,3 @@ }; | ||
persistedDirectivesData: PersistedDirectivesData; | ||
subgraphNames: Set<string>; | ||
description?: StringValueNode; | ||
@@ -29,0 +31,0 @@ }; |
@@ -19,3 +19,3 @@ import { BooleanValueNode, ConstDirectiveNode, DirectiveDefinitionNode, EnumValueDefinitionNode, EnumValueNode, FieldDefinitionNode, FloatValueNode, InputValueDefinitionNode, InterfaceTypeDefinitionNode, IntValueNode, Kind, NullValueNode, ObjectTypeDefinitionNode, ObjectTypeExtensionNode, OperationTypeNode, SchemaDefinitionNode, StringValueNode, TypeNode } from 'graphql'; | ||
export declare function compareAndValidateInputValueDefaultValues(existingData: InputValueData, incomingData: InputValueData, errors: Error[]): void; | ||
export declare function addEnumValueDataByNode(enumValueDataByValueName: Map<string, EnumValueData>, node: EnumValueDefinitionNode, errors: Error[], directiveDefinitionByDirectiveName: Map<string, DirectiveDefinitionNode>, handledRepeatedDirectivesByHostPath: Map<string, Set<string>>, parentTypeName: string): void; | ||
export declare function addEnumValueDataByNode(enumValueDataByValueName: Map<string, EnumValueData>, node: EnumValueDefinitionNode, errors: Error[], directiveDefinitionByDirectiveName: Map<string, DirectiveDefinitionNode>, handledRepeatedDirectivesByHostPath: Map<string, Set<string>>, parentTypeName: string, subgraphName: string): void; | ||
export declare function addInheritedDirectivesToFieldData(parentDirectivesByDirectiveName: Map<string, ConstDirectiveNode[]>, fieldDirectivesByDirectiveName: Map<string, ConstDirectiveNode[]>): Map<string, ConstDirectiveNode[]>; | ||
@@ -22,0 +22,0 @@ export declare function addFieldDataByNode(fieldDataByFieldName: Map<string, FieldData>, node: FieldDefinitionNode, argumentDataByArgumentName: Map<string, InputValueData>, directivesByDirectiveName: Map<string, ConstDirectiveNode[]>, originalParentTypeName: string, renamedParentTypeName: string, subgraphName: string, isSubgraphVersionTwo: boolean, errors: Error[]): FieldData; |
@@ -263,3 +263,3 @@ "use strict"; | ||
} | ||
function addEnumValueDataByNode(enumValueDataByValueName, node, errors, directiveDefinitionByDirectiveName, handledRepeatedDirectivesByHostPath, parentTypeName) { | ||
function addEnumValueDataByNode(enumValueDataByValueName, node, errors, directiveDefinitionByDirectiveName, handledRepeatedDirectivesByHostPath, parentTypeName, subgraphName) { | ||
const name = node.name.value; | ||
@@ -273,2 +273,3 @@ enumValueDataByValueName.set(name, { | ||
persistedDirectivesData: newPersistedDirectivesData(), | ||
subgraphNames: new Set([subgraphName]), | ||
description: (0, utils_1.formatDescription)(node.description), | ||
@@ -275,0 +276,0 @@ }); |
{ | ||
"name": "@wundergraph/composition", | ||
"version": "0.33.1", | ||
"version": "0.34.0", | ||
"author": { | ||
@@ -42,3 +42,3 @@ "name": "WunderGraph Maintainers", | ||
}, | ||
"gitHead": "286a8813972f0be1582c772511702e52ee2e414d" | ||
"gitHead": "8b8abc9ab88cf57f681078669952b703077866c7" | ||
} |
Sorry, the diff of this file is too big to display
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 too big to display
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
Sorry, the diff of this file is not supported yet
1103858
12321