Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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/"));
 
PREVIOUS NEXT
Tagged: #basic #express #graphql
ADD COMMENT
Topic
Name
9+1 =