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

Articles

How we manage live 1M GraphQL Websocket Subscriptions

Learn about how the folks at Hexact Inc. have been handling the live 1 million GraphQL web socket subscriptions on Google Cloud Kubernetes. Tigran Bayburtsyan explains how their infrastructure is set up and how they used a custom-built PubSub library. The article also discusses the benefits to using GraphQL subscriptions to provide more interactive UI to users.

Migrating from Redux to GraphQL

Ming Horn from NerdWallet shares some tips and learnings on migrating several screens from Redux to Apollo GraphQL. She takes you through the steps of migration, from writing GraphQL schema and resolvers to making your first query. She mentions the two complex issues she ran into with the schema and Redux store and how she solved the issues with a HOC.

How to Secure a GraphQL API

This in-depth guide details how to implement some of the best practices in securing a GraphQL API from abusive queries by clients. Sample code snippets are provided throughout on how to limit query complexity, automatically persist queries, rate limit based on server time, and more. The guide includes resources to help protect your GraphQL endpoint and apply best practices for authentication and authorization.

Tools & Open Source

hypnos

Check out Hypnos, a new desktop application to sandbox GraphQL calls to RESTful APIs. Some features include a local query history from your sessions, multiple tabs that save the endpoint and query, and authenticated APIs. Available for Mac or Windows, Hypnos can be easily installed and supports calls to both open APIs and APIs requiring a key.

Videos

GraphQL Microservices

In this video lecture, Robert Pitt discusses different ways to use microservices with GraphQL. He talks about how to use schema stitching to use GraphQl with a microservice architecture.

GraphQL vs REST for Side Projects

Watch as Ben Awad analyzes the pros and cons of GraphQL vs REST that he learned after building two side projects. Using GraphQL Playground, he provides insight into the advantages, such as no over/under fetching and no versioning of an API, and disadvantages, like complexity in fetching data efficiently. Ben adds his final thoughts on how to decide when a project is better suited for using GraphQL or REST.

Feeling nerdy? Query issues of GraphQL Weekly, with GraphQL itself!
Powered by the GraphQL Playground
Enter a query
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
  allIssues {
    id
    title
    published
    number
    date
    author {
      avatarUrl
      description
      name
    }
  }
}
or press CMD + Enter
Result
Curated by Stellate, and the awesome GraphQL community.