A weekly newsletter of the best news, articles and projects about GraphQL

Tutorials

GraphQL with Golang: A Deep Dive From Basics To Advanced

This piece offers an introductory tutorial of GraphQL with Go. Using gqlgen and working with the hypothetical example of a video publishing site, this article walks the reader from queries, mutations, subscriptions, etc, to more advanced topics, including authentication and optimizing the queries themselves.

Create Fullstack Applications with GraphQL and Apollo

This playlist on egghead.io by Eve Porcello and Alex Banks covers everything you need to get started with GraphQL, Apollo Server, and Apollo Client.

SwagQL: Generate customizable GraphQL schema from Swagger spec

This article covers the use of SwagQL at Groupon. SwagQL builds a GraphQL schema from a Swagger (or Open API) spec that provides GraphQL Types, Queries, and Mutations. The generated schema can be customized using babel plugins. Offering a tutorial on using SwagQL with Swagger's Pet Store example, the piece goes over building a GraphQL interface for that backend. It is always interesting to see the various approaches companies take when working with GraphQL and Swagger together in production.

Tutorials

Fully functional WhatsApp Clone using Angular, GraphQL, Apollo, TypeScript and PostgreSQL

A rich tutorial in 13 steps, this article is the introduction to an updated version of a Whatsapp clone tutorial from 2015. The tutorial, published earlier this week, takes great care to cover best practices when building an app. The subjects covered in the piece include basic authentication, subscriptions, and advanced tooling.

GraphQL (with React, Angular, Vue, and Node)

A 4 day GraphQL (with React, Angular, Vue, and Node) bootcamp, this live-streamed and recorded video covers working with GraphQL on a client in all popular frontend frameworks as well as how to create your own GraphQL server with various solutions. Taking advantage of Youtube's livestream feature, the video has not only the traditional comments at the bottom but also a real time log of the conversations and viewer questions.

Tutorials

Try GraphQL

A fun, interactive GraphQL tutorial, Try GraphQL takes a user from running a simple query in GraphQL, all the way up to querying from a react app. With a cool aesthetic and interesting challenges throughout, this is a fun way to practice and get familiar with GraphQL.

Tutorials

Authentication and Authorization Basics with GraphQL and REST

This easy to follow overview tutorial by Rodrigo Quezada provides an introduction to Authentication and Authorization. The piece offers an intro to JSON web tokens, the middleware approach to authentication, as well as using graphql-yoga. It rounds out with some details on Authorization with GraphQL Shield.

Effortless Real-time GraphQL API with Serverless Business Logic

This tutorial by Vladimir Novick covers deploying a GraphQL API with Hasura using Docker and the capabilities offered by the Hasura console once deployed.With a console walkthrough, this piece offers a good summary of the Hasura's functionality and additional tooling.

GraphQL Persisted Queries with Apollo Server 2

The third piece in a series on persisted queries and working with Apollo Server 2. A straightforward guide that covers how to clean up some code and work better the new Apollo functionality.

Merging 2 GraphQL APIs at the Same Level

Covering a new "union pattern" to merge APIs, this tutorial combines an AppSync API and Gitub API to create a a single API service. Walking through the process of setting this up, the article closes out by covering how to deploy the new API server to AWS Lambda.

Tutorials

How to survive a Penetration Test as a GraphQL developer

A helpful security-focused tutorial, the piece offers several examples of how developers can lock down their GraphQL applications against potential intruders. The article covers Access Control, Anti-Automation, Server-Side Validation Checks, and Verbose Error Messaging and provides readers with some great early steps to begin to lock down their app.

Basics of Caching Data in GraphQL Apollo React Client

A dense article, this piece shares a variety of caching strategies in React Apollo GraphQL Client. While offering a swathe of options, the tutorial is also diligent about linking out to articles that dive deeper, helping anyone investigate any specific approach further.

How to use Postman with GraphQL APIs

For users and fans of Postman, this article does exactly what it says on the tin. 🥫

Tutorials

GraphQL concepts I wish someone explained to me a year ago

A deep and helpful seven part series on GraphQL! In it Naresh Bhatia covers Queries, Mutations, and Subscriptions for client and server implementations. The series distinguishes itself by deliberately covering a more advanced GraphQL example. It sets up a potential real life example of books, authors, and publishers to highlight some of the more complex problems that the relationships between entities can cause in GraphQL.

Tutorials

Apollo Server and Express

In the following tutorial, you are going to implement server-side architecture with GraphQL and Apollo Server. Apollo Server on top of graphql-js aims to simplify building GraphQL servers in JavaScript. Checkout this tutorial to get an awesome boilerplate for your future GraphQL projects.

Tutorials

GraphQL APIs for Database Administration

This article by Michael Hunger, explores the concept of database administration through GraphQL. Leveraging Neo4j, by installing the neo4j-graphqlextension you will have a nice admin api put of the box. After the simple click to install, you'll be ready to play with your Admin API via GraphiQL or GraphQL Playground.

Connecting Phoenix Applications with Absinthe and Subscriptions

In this tutorial, Eric Sullivan from Annkissam dives into leveraging GraphQL Subscriptions in your Elixir/Phoenix applications. This tutorial will have you exploring a simple application with Absinthe Phoenix building data models to GraphQL schemas. You'll be up and running with subscriptions in no time!

Tutorials

A Gentle Introduction to GraphQL with Elixir and Phoenix

This tutorial by Brandon Richey is an excellent introductory guide for Elixir/Phoenix developers that want to learn how to get started with GraphQL. Bonus points for a great structure and detailled instructions!

GraphQL Dynamic Persisted Queries

Corey Clark teaches you how to build a fullstack app (React & Node) that uses dynamic persisted queries. It's great to see more tutorials that are touching on non-trivial use cases for GraphQL - huge shoutout to Corey for that!

Tutorials

Build a Simple GraphQL Server with GraphQL Yoga

This GraphQL lesson by Christian Nwamba on the amazing egghead.io website takes you through the process of setting up a GraphQL server with the graphql-yoga library. The easiest way to get started with GraphQL!

GraphQL Shield

The GraphQL Shield library allows to implement authorization logic in your GraphQL server based on graphql-middleware. In this tutorial, Matic Zavadlal explains how to build a simple groceries shopping application that manages permissions with graphql-shield.

Tutorials

Getting Started With GraphQL Using Golang

Golang developers watch out - this one is for you! Nic Raboy wrote an excellent introduction tutorial demonstrating how to get started with Go and GraphQL using the graphql-go library. Give it a read if you want to learn how you can up your API game!

Tutorials

Render Props in React Apollo 2.1

The new render props API in React Apollo 2.1. is all the hype right now. Learn how to use the new <code>Query</code> and <code>Mutation</code> components in this comprehensive tutorial.

Intro to GraphQL in React Using React Apollo & Apollo Boost

alligator.io is known for the great frontend tutorials on their site! This tutorial is a thorough introduction to using React together with the apollo-boost package.

Updated Node.js tutorial on How to GraphQL

The Node tutorial on How to GraphQL recently saw a major update. If you want to learn how to build GraphQL servers entirely from scratch, be sure to check it out!

Tutorials

Typescript Types for GraphQL Resolvers (Video)

The awesome Ben Awad just released another video tutorial. This time he's taking a closer look at how to leverage the types defined in the GraphQL schema when implementing resolvers with TypeScript. By the way, if you haven't checked out Ben's Youtube channel yet - you definitely should!

Tutorials

What the hell is Prisma, the GraphQL thing?

Brandon Paquette untangles the GraphQL ecosystem by giving an explanation of Prisma and how it fits into your stack. It's a great read for everyone who feels overwhelmed with the recent developments in the GraphQL community and is seeking for some clarity. An excellent read!

Migrating a Phoenix and Elm app from REST to GraphQL

Many developers still are not aware of the fact that GraphQL is language-agnostic and thus can also be used outside the JavaScript ecosystem. In this post, Paul Fioravanti describes his path of migrating a Phoenix/Elm app from REST to GraphQL.

Tutorials

How to wrap a REST API with GraphQL

Wrapping REST APIs is one of the most exciting applications of GraphQL! This tutorial describes how you can turn a REST into a GraphQL API in 3 simple steps.
If you want to learn more about this topic, be sure to also watch Jon Wong's talk from the last GraphQL SF Meetup: Wrapping REST with GraphQL.

Tutorials

How to build a GraphQL Server with `graphql-yoga`

graphql-yoga is a GraphQL server library that provides a simple and clean API. In this instructive tutorial, you'll learn how to use it to build a GraphQL server from scratch. Along the way, different concepts are covered like defining and implementing a GraphQL schema, using GraphQL bindings (schema stitching), graphlq-config and a lot more.

Handling errors in GraphQL

Error handling still is a commonly discussed issue in the GraphQL community and best practices are yet to emerge. André König presents a consistent and robust approach to error handling based on apollo-errors.