E
E
Egor Astreiko2019-08-13 12:16:42
Express.js
Egor Astreiko, 2019-08-13 12:16:42

What is the difference between graphqlExpress and graphqlHTTP?

Hello everyone, what is the difference between using

graphqlExpress

app.use(
  '/graphql',
  graphqlExpress({
    schema: MyGraphQLSchema,
    graphiql: true,
  }),
);


from
graphqlHTTP

app.use(
  '/graphql',
  graphqlHTTP({
    schema: MyGraphQLSchema,
    graphiql: true,
  }),
);


UPD: Since I understood, thanks
Michael @notiv-nt
that graphqlExpress is no longer used, new question:
What is apollo-server-express used for, and what is express-graphql used for?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2019-08-13
@notiv-nt

What are the modules?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question