1const express = require("express");
2const expressGraphQL = require("express-graphql").graphqlHTTP;
3
4const app = express();
5
6app.use(
7 "/graphql",
8 expressGraphQL({
9 graphiql: true,
10 })
11);
12
13app.listen(5000, () => console.log("Server run on http://localhost:5000/"));