Skip to content

Commit

Permalink
feat: extend apollo server context to include connections params (#15)
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Martinez Pupo <[email protected]>
  • Loading branch information
segpacto and Ivan Martinez Pupo authored Dec 1, 2020
1 parent cdd6c42 commit fea6656
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ module.exports = async ({
...apolloServerConfig,
schema: mergedSchemas,
context: (integrationContext) => ({
...integrationContext,
...contextConfig,
req: integrationContext.req,
resolveSchema: (schameName) => {
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
"test": "jest --coverage --detectOpenHandles --runInBand --testRegex=test/.*\\.spec\\.js --testPathIgnorePatterns=test/mocks/*.js"
},
"standard": {
"env": [ "jest" ]
"env": [
"jest"
]
},
"version": "1.0.7"
"version": "1.0.8"
}

0 comments on commit fea6656

Please sign in to comment.