skip to Main Content

Json – Struggling with a MongoDB YouTube tutorial

const express = require('express'); const bodyParser = require('body-parser'); const graphqlHttp = require('express-graphql'); const { buildSchema } = require('graphql'); const app = express(); app.use(bodyParser.json()); app.use( '/graphql', graphqlHttp({ schema: buildSchema(` type RootQuery { events: [String!]! } type RootMutation { createEvent(name: String): String…

VIEW QUESTION
Back To Top
Search