22 Guides

GraphQL

All posts are related to the "GraphQL" category.

How to use fetch API to call GraphQL APIs?

The Fetch API can be used to call GraphQL APIs by making a POST request with the GraphQL query as the request body, and handling the response accordingly.

4 Things You Need To Do For Calling GraphQL APIs

The process of consuming GraphQL APIs is different from other types of APIs, such as REST. Here are four things you need to specify while calling a GraphQL API.

How to publish a GraphQL API on RapidAPI Hub?

RapidAPI Hub is home to over 3 million developers. This piece will guide you through the process of publishing a GraphQL API on RapidAPI Hub.

How to consume GraphQL APIs in React using URQL?

Today, more and more applications are using GraphQL APIs. There are multiple ways to consume them in React, and URQL is one of them.

GraphQL & API's Future

With the passage of time, the way APIs are developed has been evolving rapidly. Many companies have been using GraphQL to build APIs.

What is GraphQL? - A Beginner's Friendly Guide

There are a couple of things that make GraphQL unique. This guide will help beginners understand about GraphQL.

How to Define GraphQL Queries and Mutations?

GraphQL schema is the blueprint of a GraphQl API and describes the form of the data returned by the API. Let's see how to define queries and mutations.

Best Practices for GraphQL API Security

GraphQL APIs are a tad different from conventional REST APIs, so let's discuss some practices specifically for GraphQL APIs.

How to Consume GraphQL APIs in Vue?

Vue.js is built on top of HTML, CSS, and JavaScript and provides a declarative and component-based programming model. In this piece, we will look at how you can consume GraphQL APIs in Vue.js applications.

GraphQL Schema and its Types

GraphQL schema is the blueprint of a GraphQl API and describes the form of the data returned by the API. Let's take a look at its type system with examples.

Interactive Guide to GraphQL Fragments

GraphQL queries enable declarative data fetching but may become complicated when you want to interact with many fields. GraphQL fragments solve this problem by allowing you to reuse parts of a query. This interactive guide will explain how they work.

How to consume GraphQL APIs in React using Apollo

Today, more and more applications are using GraphQL APIs. If you are using React, you can choose from multiple ways to consume a GraphQL API, and Apollo is one of them.

Interactive Guide to GraphQL Mutations

GraphQL Mutations are used for modifying server-side data that includes creating, updating, or deleting it. Learn more about them in this interactive guide.

Interactive Guide to GraphQL Queries: Aliases and Variables

GraphQL queries enable declarative data fetching using aliases and variables. Let's try to understand them in this interactive guide.

Interactive Guide to GraphQL Queries: Fields and Arguments

GraphQL queries enable declarative data fetching and expose only a single endpoint that you can use to get data.

4 Ways to Fetch Data from a GraphQL API in React

GraphQL APIs are a tad bit different from other types like REST in implementation. Let's go through four ways we can use GraphQL APIs in React.

How to use a GraphQL API in React using Axios?

The process of consuming GraphQL APIs differs from other APIs, such as REST. Let's see how we can use them in React using Axios.

What is GraphQL Schema Stitching?

GraphQL schema stitching lets you create a single GraphQL schema from multiple GraphQL APIs. In this piece, let’s look at why it exists and its use cases.

How to authenticate and authorize with GraphQL?

You can use REST APIs, GraphQL API, and gRPC to communicate between client and server. These communications also involve user authentications and authorization. Let's take a look at GraphQL authentication and authorization in this piece.

How to update GraphQL API?

As your application grows, the API connecting it to the client also grows with it. If the API is publicly available, other developers might be relying on it for their products. Let's take a look at how you should update your GraphQL API so it doesn't crash other people's websites.

Best Practices for Designing GraphQL APIs

To design GraphQL API, there are some practices that should be followed. Let's take a look at some of them.

What is GraphQL and when you should use it

With GraphQL, you get precisely the data you request. No more, no else. In this piece, let's briefly look at GraphQL and in which cases you should use it.