Skip to content

Commit

Permalink
fix(installSubscriptionHandlers): don't stomp on context returned by …
Browse files Browse the repository at this point in the history
…onConnect

fix apollographql#1597
  • Loading branch information
jedwards1211 authored Feb 13, 2019
1 parent bb21951 commit 4296f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/apollo-server-core/src/ApolloServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ export class ApolloServerBase {
})[0];
}

return { ...connection, context };
return { ...connection, context: { ...connection.context, ...context } };
},
keepAlive,
},
Expand Down

0 comments on commit 4296f7f

Please sign in to comment.