@apollo/query-planner
Advanced tools
Comparing version 2.2.1 to 2.2.2-rc0
@@ -47,3 +47,3 @@ import { SelectionNode as GraphQLJSSelectionNode, OperationTypeNode, DocumentNode } from 'graphql'; | ||
label?: string; | ||
path: ResponsePath; | ||
queryPath: string[]; | ||
subselection?: string; | ||
@@ -50,0 +50,0 @@ node?: PlanNode; |
@@ -135,3 +135,3 @@ "use strict"; | ||
const dependsStr = node.depends.map(({ id, deferLabel }) => id + (deferLabel ? (`:"${deferLabel}"`) : '')).join(', '); | ||
const pathStr = node.path.join('.'); | ||
const pathStr = node.queryPath.join('/'); | ||
const labelStr = node.label ? `, label: "${node.label}"` : ''; | ||
@@ -138,0 +138,0 @@ let result = `Deferred(depends: [${dependsStr}], path: "${pathStr}"${labelStr}) {`; |
{ | ||
"name": "@apollo/query-planner", | ||
"version": "2.2.1", | ||
"version": "2.2.2-rc0", | ||
"description": "Apollo Query Planner", | ||
@@ -28,4 +28,4 @@ "author": "Apollo <packages@apollographql.com>", | ||
"dependencies": { | ||
"@apollo/federation-internals": "^2.2.1", | ||
"@apollo/query-graphs": "^2.2.1", | ||
"@apollo/federation-internals": "^2.2.2-rc0", | ||
"@apollo/query-graphs": "^2.2.2-rc0", | ||
"chalk": "^4.1.0", | ||
@@ -38,3 +38,3 @@ "deep-equal": "^2.0.5", | ||
}, | ||
"gitHead": "03597ced86dc4c2e6fca59ee48b40fd885ad213a" | ||
"gitHead": "250570f2141d87d86ad773b2a1895e7a6b72a618" | ||
} |
@@ -96,4 +96,5 @@ import { | ||
label?: string, | ||
// Path to the @defer this correspond to. The `subselection` starts at that `path`. | ||
path: ResponsePath, | ||
// Path, in the query, to the @defer this corresponds to. The `subselection` starts at that `queryPath`. | ||
// This look like: `[ 'products', '... on Book', 'reviews' ]` | ||
queryPath: string[], | ||
// The part of the original query that "selects" the data to send in that deferred response (once the plan in `node` completes). Will be set _unless_ `node` is a `DeferNode` itself. | ||
@@ -100,0 +101,0 @@ subselection?: string, |
@@ -222,3 +222,3 @@ import { Config, Plugin, Refs } from 'pretty-format'; | ||
const dependsStr = node.depends.map(({id, deferLabel}) => id + (deferLabel ? (`:"${deferLabel}"`) : '')).join(', '); | ||
const pathStr = node.path.join('.'); | ||
const pathStr = node.queryPath.join('/'); | ||
const labelStr = node.label ? `, label: "${node.label}"` : ''; | ||
@@ -225,0 +225,0 @@ let result = `Deferred(depends: [${dependsStr}], path: "${pathStr}"${labelStr}) {`; |
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
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
785821
15363
2