@apollo/query-planner
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -202,3 +202,3 @@ "use strict"; | ||
} | ||
function operationForRootFetch({ selectionSet, variableUsages, internalFragments, operation = graphql_1.OperationTypeNode.QUERY, }) { | ||
function operationForRootFetch({ selectionSet, variableUsages, internalFragments, operation = 'query', }) { | ||
return { | ||
@@ -227,3 +227,3 @@ kind: graphql_1.Kind.DOCUMENT, | ||
kind: graphql_1.Kind.OPERATION_DEFINITION, | ||
operation: graphql_1.OperationTypeNode.QUERY, | ||
operation: 'query', | ||
variableDefinitions: [ | ||
@@ -230,0 +230,0 @@ { |
@@ -10,5 +10,2 @@ import { FieldNode, InlineFragmentNode, GraphQLField, GraphQLObjectType } from 'graphql'; | ||
} | ||
interface GraphQLFieldExtensions<_TSource, _TContext, _TArgs = any> { | ||
federation?: FederationFieldMetadata; | ||
} | ||
} | ||
@@ -15,0 +12,0 @@ export declare function getFederationMetadataForType(type: GraphQLObjectType): FederationTypeMetadata | undefined; |
@@ -46,3 +46,3 @@ "use strict"; | ||
definitions: [ | ||
{ kind: graphql_1.Kind.OPERATION_DEFINITION, selectionSet, operation: graphql_1.OperationTypeNode.QUERY }, | ||
{ kind: graphql_1.Kind.OPERATION_DEFINITION, selectionSet, operation: 'query' }, | ||
...Array.from(fragments), | ||
@@ -49,0 +49,0 @@ ], |
@@ -30,3 +30,3 @@ "use strict"; | ||
subscription: replaceMaybeType(schemaConfig.subscription), | ||
directives: replaceDirectives(schemaConfig.directives) | ||
directives: replaceDirectives(schemaConfig.directives), | ||
}); | ||
@@ -33,0 +33,0 @@ function recreateNamedType(type) { |
{ | ||
"name": "@apollo/query-planner", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "Apollo Query Planner", | ||
@@ -33,5 +33,5 @@ "author": "Apollo <packages@apollographql.com>", | ||
"peerDependencies": { | ||
"graphql": "^15.5.3 || ^16.0.0" | ||
"graphql": "^15.8.0 || ^16.0.0" | ||
}, | ||
"gitHead": "55189c410aeaaaad63f97c8bad4c3f6232fc9b5b" | ||
"gitHead": "87449e166586c8277d28391f50dcede4da79603e" | ||
} |
@@ -393,3 +393,3 @@ import { isNotNullOrUndefined } from './utilities/predicates'; | ||
internalFragments, | ||
operation = OperationTypeNode.QUERY, | ||
operation = 'query' as any, | ||
}: { | ||
@@ -434,3 +434,3 @@ selectionSet: SelectionSetNode; | ||
kind: Kind.OPERATION_DEFINITION, | ||
operation: OperationTypeNode.QUERY, | ||
operation: 'query' as any, | ||
variableDefinitions: ([ | ||
@@ -437,0 +437,0 @@ { |
@@ -17,6 +17,2 @@ import { | ||
} | ||
interface GraphQLFieldExtensions<_TSource, _TContext, _TArgs = any> { | ||
federation?: FederationFieldMetadata; | ||
} | ||
} | ||
@@ -33,3 +29,3 @@ | ||
): FederationFieldMetadata | undefined { | ||
return field.extensions?.federation; | ||
return (field.extensions as any)?.federation; | ||
} | ||
@@ -36,0 +32,0 @@ |
@@ -23,3 +23,2 @@ import { | ||
visit, | ||
OperationTypeNode, | ||
} from "graphql"; | ||
@@ -112,3 +111,3 @@ import { FragmentMap } from "./buildQueryPlan"; | ||
definitions: [ | ||
{ kind: Kind.OPERATION_DEFINITION, selectionSet, operation: OperationTypeNode.QUERY }, | ||
{ kind: Kind.OPERATION_DEFINITION, selectionSet, operation: 'query' as any }, | ||
...Array.from(fragments), | ||
@@ -115,0 +114,0 @@ ], |
@@ -68,3 +68,3 @@ import { | ||
subscription: replaceMaybeType(schemaConfig.subscription), | ||
directives: replaceDirectives(schemaConfig.directives) | ||
directives: replaceDirectives(schemaConfig.directives) as GraphQLDirective[], | ||
}); | ||
@@ -71,0 +71,0 @@ |
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
Sorry, the diff of this file is not supported yet
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
457548
6073