Hola, estoy siguiendo este video para hacer un sistema de reservas, ingrese la descripción del enlace aquí
Y mi código es idéntico al del creador, pero no se está ejecutando (el mensaje de error se muestra a continuación)
[nodemon] restarting due to changes... [nodemon] starting `node app.js` C:\Users\Abdulrahman\Desktop\bookings1\app.js:12 graphqlHttp({ ^ TypeError: graphqlHttp is not a function at Object.<anonymous> (C:\Users\Abdulrahman\Desktop\bookings1\app.js:12:5) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:17:47 [nodemon] app crashed - waiting for file changes before starting...Y el código en el archivo app.js es
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 } schema { query: RootQuery mutation: RootMutation } `), rootValue: { events: () => { return ['Romantic Cooking', 'Sailing', 'All-Night Coding']; }, createEvent: (args) => { const eventName = args.name; return eventName; } }, graphiql: true }) ); app.listen(3000); ¿Alguna idea de cómo solucionar este error? Para llegar a este depurador? ¡Muchas gracias ya que he estado atascado en esto por un tiempo! 
Para corregir el error TypeError: graphqlHttp is not a function , reemplace
const graphqlHttp = require('express-graphql');con
const { graphqlHTTP } = require('express-graphql');(Observe el caso diferente para HTTP , versus Http )
Por supuesto, en las otras líneas, graphqlHttp debe ser reemplazado por graphqlHTTP .