@graphql-tools/utils 8.6.5 → 8.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
- package/print-schema-with-directives.d.ts +1 -1
package/index.js
CHANGED
|
@@ -1123,7 +1123,7 @@ function astFromEnumValue(value, schema, pathToDirectivesInExtensions) {
|
|
|
1123
1123
|
value: value.name,
|
|
1124
1124
|
},
|
|
1125
1125
|
// ConstXNode has been introduced in v16 but it is not compatible with XNode so we do `as any` for backwards compatibility
|
|
1126
|
-
directives:
|
|
1126
|
+
directives: getDeprecatableDirectiveNodes(value, schema, pathToDirectivesInExtensions),
|
|
1127
1127
|
};
|
|
1128
1128
|
}
|
|
1129
1129
|
function makeDeprecatedDirective(deprecationReason) {
|
package/index.mjs
CHANGED
|
@@ -1120,7 +1120,7 @@ function astFromEnumValue(value, schema, pathToDirectivesInExtensions) {
|
|
|
1120
1120
|
value: value.name,
|
|
1121
1121
|
},
|
|
1122
1122
|
// ConstXNode has been introduced in v16 but it is not compatible with XNode so we do `as any` for backwards compatibility
|
|
1123
|
-
directives:
|
|
1123
|
+
directives: getDeprecatableDirectiveNodes(value, schema, pathToDirectivesInExtensions),
|
|
1124
1124
|
};
|
|
1125
1125
|
}
|
|
1126
1126
|
function makeDeprecatedDirective(deprecationReason) {
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ export declare function printSchemaWithDirectives(schema: GraphQLSchema, options
|
|
|
5
5
|
export declare function astFromSchema(schema: GraphQLSchema, pathToDirectivesInExtensions?: Array<string>): SchemaDefinitionNode | SchemaExtensionNode | null;
|
|
6
6
|
export declare function astFromDirective(directive: GraphQLDirective, schema?: GraphQLSchema, pathToDirectivesInExtensions?: Array<string>): DirectiveDefinitionNode;
|
|
7
7
|
export declare function getDirectiveNodes(entity: GraphQLSchema | GraphQLNamedType | GraphQLEnumValue, schema: GraphQLSchema, pathToDirectivesInExtensions?: Array<string>): Array<DirectiveNode>;
|
|
8
|
-
export declare function getDeprecatableDirectiveNodes(entity: GraphQLArgument | GraphQLField<any, any> | GraphQLInputField, schema?: GraphQLSchema, pathToDirectivesInExtensions?: Array<string>): Array<DirectiveNode>;
|
|
8
|
+
export declare function getDeprecatableDirectiveNodes(entity: GraphQLArgument | GraphQLField<any, any> | GraphQLInputField | GraphQLEnumValue, schema?: GraphQLSchema, pathToDirectivesInExtensions?: Array<string>): Array<DirectiveNode>;
|
|
9
9
|
export declare function astFromArg(arg: GraphQLArgument, schema?: GraphQLSchema, pathToDirectivesInExtensions?: Array<string>): InputValueDefinitionNode;
|
|
10
10
|
export declare function astFromObjectType(type: GraphQLObjectType, schema: GraphQLSchema, pathToDirectivesInExtensions?: Array<string>): ObjectTypeDefinitionNode;
|
|
11
11
|
export declare function astFromInterfaceType(type: GraphQLInterfaceType, schema: GraphQLSchema, pathToDirectivesInExtensions?: Array<string>): InterfaceTypeDefinitionNode;
|