hi Greg. Sorry you got stuck.. Yes you need a const { graphql } = require('graphql'), at the top, also ensure you have run npm init -y followed by npm install graphql at the root directory of this file
const { graphql } = require('graphql')
npm init -y
npm install graphql
thanks, that worked. enjoyed the article.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
hi Greg. Sorry you got stuck.. Yes you need a
const { graphql } = require('graphql')
, at the top, also ensure you have runnpm init -y
followed bynpm install graphql
at the root directory of this filethanks, that worked. enjoyed the article.