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:
1 parent
270dff958f
commit
ad421426d5
4 files changed
+76
-5
No files matched your search
@@ -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 : ''
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user