Added a userId to the API getway

we will need to add caching to this when we have the time
This commit is contained in:
Nikola Bjelo committed 2018-10-23 15:45:29 +02:00
1 parent 270dff958f
commit ad421426d5
4 files changed
+76 -5

No files matched your search

+2 -1
View File
@@ -26,7 +26,8 @@ export const createRemoteSchema = async (uri) => {
return (
{
headers: {
Authorization: previousContext.graphqlContext.headers.authorization ? previousContext.graphqlContext.headers.authorization : ''
Authorization: previousContext.graphqlContext.headers.authorization ? previousContext.graphqlContext.headers.authorization : '',
UserId: previousContext.graphqlContext.headers.userId ? previousContext.graphqlContext.headers.userId : ''
}
}
)