Skip to content

Commit

Permalink
docs: fix contextValue example in fetching-data (#7687)
Browse files Browse the repository at this point in the history
  • Loading branch information
guidoffm committed Aug 17, 2023
1 parent daaa65d commit 4e5e871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/data/fetching-data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ const server = new ApolloServer<MyContext>({
});

const { url } = await startStandaloneServer(server, {
context: async () => {
context: async ({ req }) => {
//highlight-start
const { cache } = server;
const token = req.headers.token;
Expand Down

0 comments on commit 4e5e871

Please sign in to comment.