@graphql-tools/optimize
Advanced tools
Comparing version 1.1.1 to 1.2.0
20
index.js
@@ -55,2 +55,3 @@ 'use strict'; | ||
return graphql.visit(input, { | ||
// Request/Operation: | ||
FragmentDefinition: transformNode, | ||
@@ -64,2 +65,21 @@ OperationDefinition: transformNode, | ||
Directive: transformNode, | ||
// Schema Definition: | ||
SchemaDefinition: transformNode, | ||
ScalarTypeDefinition: transformNode, | ||
ObjectTypeDefinition: transformNode, | ||
InterfaceTypeDefinition: transformNode, | ||
UnionTypeDefinition: transformNode, | ||
EnumTypeDefinition: transformNode, | ||
EnumValueDefinition: transformNode, | ||
InputObjectTypeDefinition: transformNode, | ||
FieldDefinition: transformNode, | ||
InputValueDefinition: transformNode, | ||
// Schema Extension: | ||
SchemaExtension: transformNode, | ||
ScalarTypeExtension: transformNode, | ||
ObjectTypeExtension: transformNode, | ||
InterfaceTypeExtension: transformNode, | ||
UnionTypeExtension: transformNode, | ||
EnumTypeExtension: transformNode, | ||
InputObjectTypeExtension: transformNode, | ||
}); | ||
@@ -66,0 +86,0 @@ }; |
{ | ||
"name": "@graphql-tools/optimize", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -32,4 +32,5 @@ "sideEffects": false, | ||
"import": "./*.mjs" | ||
} | ||
}, | ||
"./package.json": "./package.json" | ||
} | ||
} |
@@ -42,5 +42,5 @@ # GraphQL Tools: `DocumentNode` Optimizer | ||
```ts | ||
export type DocumentOptimizer = (input: DocumentNode) => DocumentNode; | ||
export type DocumentOptimizer = (input: DocumentNode) => DocumentNode | ||
``` | ||
Take a look at [./optimizers](this directory for inspiration and implementation reference). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12410
270