GraphQL Tutorial #6 - Setting up GraphQL

preview_player
Показать описание
Hey gang, in this GraphQL tutorial I'll explain how we can use a package called express-graphql to set up GraphQL on our Express application.

----- COURSE LINKS:

======== Other Tutorials =========

----- NODE.JS TUTORIALS

----- MONGODB TUTORIALS

----- REACT TUTORIALS

======== Social Links ==========

Рекомендации по теме
Комментарии
Автор

const {graphqlHTTP} = require('express-graphql');

愤豆
Автор

"One super-charged endpoint to rule them all "
That gave me a chuckle. :D

DejiAdegbite
Автор

Error: 'graphqlHTTP is not a function'
if anyone is getting this error because there have been updates and it requires destructuring as
const { graphqlHTTP } = require('express-graphql');

mallasaugat
Автор

You are shining. Great course. As usual!

sineadward
Автор

nice ! i have been waiting for this mr.Shaun ! thank you ! i hope the rest of the tutorial will be uploaded soon. I really need it though! thank you ! keep it up ^ ^

TheFayt
Автор

If got error saying that graphqlHTTP is not a function, use this

var { graphqlHTTP } = require("express-graphql");
instead of
const graphqlHTTP = require('express-graphql')

harismehboob
Автор

Your videos are amazing and so well explained. Thank you!

DanyoloDriskolo
Автор

What is your keyboard model? Your keyboard sound's is awesome bro :D

muhammedotun
Автор

If you're reading this comment,

replace

const graphqlHTTP = require('express-graphql');

with

const { graphqlHTTP } = require('express-graphql');

This is just a recent update to the package.

Thank me with a like

codepraycode
Автор

For me just worked with:
const { graphqlHTTP } = require('express-graphql');

ellsonmendesYT
Автор

Hi Shaun! Could you please inform which tools you will use to create the slides and images. They are awesome...

rahulparshi
Автор

Any one facing this error: 'app crashed - waiting for file changes before starting...'

adityashrivastava
Автор

whyy dont you use monospace font?? it seems odds

PoskoKKNUINWalisongo-spkb
Автор

for someone who is watching this in 2023, instead of using
const graphqlHTTP= require('express-graphql')
use
const {graphqlHTTP}= require('express-graphql')
else it will not recognize it as a function

hamzakamran
Автор

Why use require's instead of import? Wouldn't import's be cleaner?

Rarez
Автор

too old video, now we require graphql and buildschema and not express-graphql

oussemabouyahia
Автор

TypeError: Cannot read property 'headersSent' of undefined
at headersSent
at
at Function.handle
at app
at Object.<anonymous>
at Module._compile
at Object.Module._extensions..js
at Module.load
at tryModuleLoad
at Function.Module._load
[nodemon] app crashed - waiting for file changes before starting...

shivGGG
Автор

app.use('/graphql', graphqlHTTP({


}));

this is needed as well if you are getting the graphqlHTTP is not a function error message

thurmansanders
visit shbcf.ru