@apollo/query-graphs
Advanced tools
Comparing version 2.9.1 to 2.9.2
@@ -418,11 +418,2 @@ "use strict"; | ||
} | ||
for (const [subgraphName, args] of subgraphToArgs) { | ||
args.sort(); | ||
const argToIndex = new Map(); | ||
for (let idx = 0; idx < args.length; idx++) { | ||
argToIndex.set(args[idx], `contextualArgument_${i}_${idx}`); | ||
} | ||
subgraphToArgIndices.set(subgraphName, argToIndex); | ||
} | ||
builder.setContextMaps(subgraphToArgs, subgraphToArgIndices); | ||
simpleTraversal(subgraph, _v => { return undefined; }, e => { | ||
@@ -442,2 +433,15 @@ if (e.head.type.kind === 'ObjectType' && e.transition.kind === 'FieldCollection') { | ||
} | ||
for (const [i, subgraph] of subgraphs.entries()) { | ||
const subgraphName = subgraph.name; | ||
const args = subgraphToArgs.get(subgraph.name); | ||
if (args) { | ||
args.sort(); | ||
const argToIndex = new Map(); | ||
for (let idx = 0; idx < args.length; idx++) { | ||
argToIndex.set(args[idx], `contextualArgument_${i + 1}_${idx}`); | ||
} | ||
subgraphToArgIndices.set(subgraphName, argToIndex); | ||
} | ||
} | ||
builder.setContextMaps(subgraphToArgs, subgraphToArgIndices); | ||
let provideId = 0; | ||
@@ -444,0 +448,0 @@ for (const [i, subgraph] of subgraphs.entries()) { |
{ | ||
"name": "@apollo/query-graphs", | ||
"version": "2.9.1", | ||
"version": "2.9.2", | ||
"description": "Apollo Federation library to work with 'query graphs'", | ||
@@ -26,3 +26,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@apollo/federation-internals": "2.9.1", | ||
"@apollo/federation-internals": "2.9.2", | ||
"deep-equal": "^2.0.5", | ||
@@ -29,0 +29,0 @@ "ts-graphviz": "^1.5.4", |
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
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
641591
9185
+ Added@apollo/federation-internals@2.9.2(transitive)
- Removed@apollo/federation-internals@2.9.1(transitive)