Skip to content

Commit

Permalink
PREAPPS-7866 upgrade graphql version 15.8.0 to 16.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
damini-vashishtha authored and silentsakky committed Jul 10, 2024
1 parent ad739e0 commit 7ed082a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@apollo/client": "3.4.16",
"@graphql-tools/schema": "^10.0.3",
"dataloader": "^2.2.2",
"graphql": "^15.8.0",
"graphql": "^16.9.0",
"lodash": "^4.17.21",
"mitt": "^3.0.0"
},
Expand Down
18 changes: 9 additions & 9 deletions src/apollo/local-batch-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ export class LocalBatchLink extends ApolloLink {
let emittedResponse = false;
Promise.all(
operations.map((operation: Operation) => {
const query = print(operation.query);
const { operationName, variables = {} } = operation;
const params = {
schema: this.schema,
source: print(operation.query),
rootValue: null,
contextValue: operation.getContext() || options.context || {},
variableValues: variables,
operationName: operationName
};

return graphql(
this.schema,
query,
null,
operation.getContext() || options.context || {},
variables,
operationName
);
return graphql(params);
})
)
.then((results: FetchResult[]) => {
Expand Down

0 comments on commit 7ed082a

Please sign in to comment.