The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Create a GraphQL Schema

Create a GraphQL Schema

4:16
In this video, we’ll take a look at the GraphQL Language and write out our first GraphQL Schema. We’ll use the `graphql` package available to us through `npm` to parse our `graphql` language file and resolve our initial query.
Watch this lesson now
Avatar
egghead.io

In this video, we’ll take a look at the GraphQL Language and write out our first GraphQL Schema. We’ll use the graphql package available to us through npm to parse our graphql language file and resolve our initial query.

Avatar
Mithun

The line endings seen in the editor are distracting.

A feedback would be that their display be turned off when recording videos, especially as we are looking at the video and attempting to write the code present.

Avatar
Josh Black

Hi Mithun! Just wanted to say thanks for watching the video!

RE: the line endings, totally understand! They definitely add visual clutter when looking at the code. Will try and remedy this in future so it's not as distracting 😄

In reply to Mithun
Avatar
marshallformula

which terminal & font set are you using?

In reply to Josh Black
Avatar
Ian

Thanks for the course, it came at the perfect time as I was looking to dive into Graphql from scratch.

By the way, are you using a theme for your ZSH profile? Anything you can share? I like the simplicity of it.

It reminds me that I really need to get more fluent with VIM too. :P

Avatar
Josh Black

Hi marshallformua! The terminal I'm using right now is iTerm2, with a zsh profile, and then Operator Mono for the font.

Thanks for watching, by the way!

In reply to marshallformula
Avatar
Josh Black

Hi Ian! Glad that the content for this course was helpful, thank you so much for watching!

And I definitely can share the profile settings, since I actually grabbed them from someone else's dotfiles 😂.

Most of the configuration for what I have comes from Greg Hurrell, working on Relay for Facebook. He posted his config setup under wincent/wincent on GitHub. Most of the theme stuff and vim pieces come from that.

Let me know if you have any more questions! And thanks again for watching 😄

In reply to Ian
Avatar
Chris Pauley

Which version of node is required?

After I typed your sample code and typed "node index.js", I get the following error:

const { graphql, buildSchema } = require('graphql');
^

SyntaxError: Unexpected token {

Avatar
Josh Black

Hi Chris! The version of Node that I used for this series was v6.x. Hope that helps!

In reply to Chris Pauley
Avatar
Chris Pauley

Yup, now I know nvm too
Thanks!

In reply to Josh Black
Avatar
Brent

Hi, where is the code for this tutorial available?

In reply to egghead.io
Avatar
Lluis

+1 for having the code available

In reply to Brent
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?