Skip to content

Add custom context #1152

Answered by pradel
flashtheman asked this question in Q&A
Jul 2, 2021 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Do you mean something like this?

 const server = new ApolloServer({
      schema,
      context: {
		 ...accountsGraphQL.context,
         myTypeormContextObject,
      },
    });

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@flashtheman
Comment options

@pradel
Comment options

@flashtheman
Comment options

@pradel
Comment options

Answer selected by flashtheman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants