Skip to content

How to merge into existing ApolloServer? #167

Answered by theogravity
theogravity asked this question in Q&A
Discussion options

You must be logged in to vote

Figured it out, import makeExecutableSchema and mergeSchemas from apollo-server-express / graphql-tools (if not using express)

  const schema = makeExecutableSchema({
    typeDefs,
    resolvers,
    schemaDirectives,
  });

  return new ApolloServerExpress({
    schema: mergeSchemas({
      schemas: [schema, giraphBuilder.toSchema({})],
    }),
    ```

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by theogravity
Comment options

You must be logged in to vote
1 reply
@theogravity
Comment options

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