DEV Community

Discussion on: How To Build a GraphQL API with Apollo-Server and Prisma

Collapse
 
patriciorivera profile image
Patricio Rivera

Hi Nditah and thanks for your tutorial. A question: why are you using apollo-server package instead of apollo-server-express? Thanks in advance.

Collapse
 
pkellner profile image
Peter Kellner

This line means he is using apollo-server (which uses express I believe). You can convert it though. Notes are in the apollo docs.

const { ApolloServer } = require('apollo-server')