Building Better APIs with GraphQL

Step-by-step guide to building a better and faster API with GraphQL
3.9 (42 ratings)
Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
275 students enrolled
$19
$50
62% off
Take This Course
  • Lectures 16
  • Length 2.5 hours
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 11/2015 English

Course Description

This course teaches you everything you need to know about GraphQL. GraphQL was open sourced by Facebook in 2015 and is a fresh new approach to API development.

GraphQL will replace REST in the coming years. Don't just take my word for it though, here's what some other folks on Twitter are saying:

"Just watched a talk on GraphQL, I want this thing and I want it by yesterday" – @sunesimonsen

"I long for the day when GraphQL will be the new API standard."@xinron

"GraphQL is the King. Long Live the King! (R.I.P. REST)" – @scbarrus

––––––––––––––––––––––

About this course:

  • We build two projects from scratch so you have everything you need to know to use GraphQL
  • Full, free lifetime access
  • Unconditional Udemy 30 day money-back guarantee - that's my personal promise of your success!
  • On-screen, over my shoulder view of where to go, what to click on, and how to set everything up from start to finish


What you'll learn:

  • How the GraphQL schema works so you can use GraphQL on your own servers
  • How to query GraphQL so you can access and mutate your data
  • We'll start simple, creating a schema with dummy data
  • Then we'll hook up our with schema to a live Star Wars API
  • We'll learn how to query the data, filter the data, and optimize the queries with DataLoader
  • We'll cover how to put the schema on an Express server so you can get access to your data with just HTTP requests
  • Then we'll get started with mutations, the GraphQL version of POST, PUT, and DELETE of REST
  • We'll build a blog API using just GraphQL mutations and queries, tying everything we've learned so far
  • We'll cover the state of GraphQL Subscriptions, an emerging and evolving standard

So you've read this far! Thank you.

One final and important point

If you've ever had trouble working with REST in the past, it's not your fault. It's been the recommended way of building APIs since 1996. There are countless articles on creating "thoughtful RESTful APIs", but none of them ever seem to apply to what you're working on. GraphQL offers a way out of this madness.

I've been running a GraphQL server in production for the last 3 months and it's sped up our response time, simplified our architecture and made it easier to access our data. I am not alone. Many multi-million dollar companies are also seeing the benefits of GraphQL in production including the Financial Times, Artsy, and Facebook.

Let's get started. Click the "Take this Course" button in the top-right corner right now and I'll see you on the other side.

Matthew Mueller

What are the requirements?

  • Basic Javascript Knowledge
  • Node.js Installed
  • An text editor
  • A willingness to learn

What am I going to get from this course?

  • Create powerful GraphQL APIs
  • Build APIs faster than ever before
  • Answer important questions about your data
  • Glue your data and 3rd party data together into one easy-to-use API

What is the target audience?

  • You should take this course if you have data you need to access easily
  • You should take this course if you want to upgrade your API skills. If you need to access your data in a flexible and reliable way, this course is for you
  • You should not take this course if you're looking for a React or Relay course. This course covers GraphQL as a standalone technology

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: GraphQL Basics
07:38

In this lecture we cover the basics of GraphQL and talk about the benefits of using GraphQL over REST.

04:21

This lecture covers the GraphQL schema syntax in depth

05:14

This lecture covers the GraphQL query language and how these queries relate and are executed against the schema.

Section 2: GraphQL Queries
08:32

In this lesson we build our first GraphQL schema using graph.ql.

19:15

In this lesson we implement our first schema. We talk about how to implement scalars, fill in type implementations and kick off the GraphQL query.

I've attached the final code if you'd like to follow along with the code in front of you.

02:22

In this lesson we learn about how to add filters to our queries to support rich querying.

19:59

In this lecture we connect our schema to a live API. You will truly understand the power of GraphQL after watching this lecture.

06:55

Up until this point, we were executing queries directly in our editor. In this lesson, we create a server to serve our GraphQL schema. After this lesson you'll be able to query your data by making requests to the server.

10:16

In this lecture, we learn about GraphiQL, which is an editor that makes testing, debugging and administrating GraphQL servers much, much easier. This lecture will make you fall in love with GraphQL a second time.

14:31

Up until this point, we were naively making HTTP requests to the Star Wars API. In this episode we look at optimizing and actually simplifying these queries using Facebook's DataLoader.

This is the 1st part of a 2 part lecture.

10:01

This is the 2nd part of using the DataLoader. After you finish this lecture, you'll have a production-ready GraphQL server.

Section 3: GraphQL Mutations
03:56

In this lecture, we learn about GraphQL mutations and how they work.

01:22

In this lecture, I show you what we're going to have created by the end of this section.

14:32

In this lecture, we're going to implement our Blog schema from scratch.

08:44

In this lecture, we're going to take our built GraphQL schema and serve and manipulate it using Express and GraphiQL.

Section 4: GraphQL Subscriptions
05:28

In this lecture, I cover the basics of GraphQL subscriptions. This lecture does not come with an implementation because the semantics of subscriptions have not been ironed out yet (it was just introduced a month ago).

I'm going to give you the lay of the land in this lecture, and will be adding more videos (for free) as the spec gets ironed out.

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Matthew Mueller, Web Developer. Open Source Advocate. Light Packer.

I've been building websites for the last 12 years. In college I spent 3 years teaching college students how to design and build websites. After college I packed up my bags and moved to San Francisco to work for various companies large and small including Yahoo, Automattic and Coinbase. In addition to working for other companies, I've also helped start some web companies including Lapwing Labs, Gittask and Finbox. I put most of my code up on Github for anyone to learn from and use for free.

Over the years, I've consistently tried to simplify complex development concepts into digestable, easy to understand principles.

I'm here to teach you these principles and discoveries, so you are empowered to create the next big thing in tech.

Feel free to reach out with your questions and comments. I look forward to hearing from you!

Ready to start learning?
Take This Course