is it possible to mount the GraphQLServer to an ex...
# orm-help
j
is it possible to mount the GraphQLServer to an express route, something like:
Copy code
var app = express();
app.use('/graphql', graphqlHTTP({
  schema: schema,
  rootValue: root,
  graphiql: true,
}));
app.listen(4000);
console.log('Running a GraphQL API server at localhost:4000/graphql');
d
Are you looking for something like this? https://github.com/graphql/express-graphql
j
yes exactly -- but with prisma!
d
You should be able to create an executable schema using stitching with Prisma and mount it on an express endpoint. Very roughly like this : https://github.com/divyenduz/bind-gql-tools/blob/master/index.js Stitching docs: https://www.apollographql.com/docs/graphql-tools/schema-stitching.html
@Jonathan Tushman 🙂
j
@divyendu that was super helpful!