Skip to content

Commit

Permalink
fix(processRequest): pass context as contextValue correctly (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Nov 4, 2021
1 parent c74d31d commit a52d40b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/sixty-llamas-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"graphql-helix": patch
---

fix(processRequest): pass context as contextValue correctly
2 changes: 1 addition & 1 deletion benchmark/k6.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const options = {
thresholds: {
no_errors: ["rate=1.0"],
expected_result: ["rate=1.0"],
http_req_duration: ["avg<=0.6"],
http_req_duration: ["avg<=1"],
},
};

Expand Down
2 changes: 1 addition & 1 deletion packages/core/lib/process-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const processRequest = async <TContext = {}, TRootValue = {}>(
schema,
document,
rootValue,
context,
contextValue: context,
variableValues,
operationName,
});
Expand Down
2 changes: 1 addition & 1 deletion packages/deno/process-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const processRequest = async <TContext = {}, TRootValue = {}>(
schema,
document,
rootValue,
context,
contextValue: context,
variableValues,
operationName,
});
Expand Down

0 comments on commit a52d40b

Please sign in to comment.