GraphQL

GraphQL

Created
May 16, 2022 9:18 PM
Tags
🛠 Web Development🗄 Backend Development
Library
🛠 Engineer: Tech | Engineering | Development
Last edited time
Aug 1, 2022 5:13 PM
Published?
GraphQL is a Trap?

This twitter thread blew up on twitter yesterday and I thought I'd go over some of the author's points in a longer format so we can clear up some misconceptions. Let's go over them one by one! [Tweet 1] GraphQL makes your public API equal to a generic database and - worse - a generic graph database.

GraphQL is a Trap?
Mutations in Apollo Client

Now that we've learned how to query data from our backend with Apollo Client, the natural next step is to learn how to modify back-end data with mutations. This article demonstrates how to send updates to your GraphQL server with the useMutation hook.

Mutations in Apollo Client
GraphQL Mutations to insert data | GraphQL Tutorial

Before learning about GraphQL Mutations, you should be familiar with the following concepts: Like GraphQL Queries, Mutations use variables too, so it's important to be familiar with them. Up to this point, you only learned how to fetch data in GraphQL. But the real-world applications are complex and you also need to insert, update or delete data.

GraphQL Mutations to insert data | GraphQL Tutorial
GraphQL Remote Schema Stitching in a Multi-Service Architecture

Micro-services have been gaining popularity and are now becoming the status-quo of building and designing web applications. Many of the common patterns of multi-service architectures involve the use of numerous APIs where each has their own purpose and are eventually used as the building block for the frontend application.

GraphQL Remote Schema Stitching in a Multi-Service Architecture