Skip to content
Snippets Groups Projects
Commit 7e5e8764 authored by Yannis Barlas's avatar Yannis Barlas
Browse files

feat(server): expose req & res in graphql context

parent 8d8498b0
No related branches found
No related tags found
2 merge requests!52Docx,!17Graphql api
......@@ -41,6 +41,8 @@ const createGraphQLServer = testUserContext => {
connectors,
user: testUserContext || req.user,
loaders: createdLoaders,
req,
res,
}),
formatError: err => {
const error = isEmpty(err.originalError) ? err : err.originalError
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment