Answers for "basic express graphql"

0

basic express graphql

const express = require("express");
const expressGraphQL = require("express-graphql").graphqlHTTP;

const app = express();

app.use(
  "/graphql",
  expressGraphQL({
    graphiql: true,
  })
);

app.listen(5000, () => console.log("Server run on http://localhost:5000/"));
Posted by: Guest on September-06-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language