Skip to content

Commit

Permalink
refactor: rename C to contextValue
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela authored Apr 19, 2019
1 parent bf2d3ad commit 3e2bd80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/express.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,14 @@ function useHandler(config: {
};
}, {});

const C = isContextFn(sofa.context)
const contextValue = isContextFn(sofa.context)
? await sofa.context({ req, res })
: sofa.context;

const result = await sofa.execute({
schema: sofa.schema,
source: print(operation),
contextValue: C,
contextValue,
variableValues,
operationName: info.operation.name && info.operation.name.value,
});
Expand Down

0 comments on commit 3e2bd80

Please sign in to comment.