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.
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.
APIs are the backbone of software applications today. They connect applications of diverse architectures and help them communicate in order to perform CRUD operations. Let's take a look at the different types of APIs.
Rate limiting is a way to limit the requests coming to an API. GraphQL APIs have another way of restricting requests called depth limiting. This method resists queries based on their depth.
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.
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 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.
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.
Client-side caching helps reduce unnecessary and redundant requests to the APIs. This guide will demonstrate how to cache a GraphQL API in React using Apollo.
Svelte is one of the fastest-growing JavaScript frameworks and has captured the attention of many developers. If you want to build a Svelte application, this guide will demonstrate how to consume GraphQL APIs.
Svelte is an open-source compiler that runs at build time and generates minimal and optimized JavaScript code. It competes with other JavaScript frameworks like React, Angular, and Vue. This guide will demonstrate how you can consume APIs in a Svelte application.
GraphQL Subscriptions provide a way to fetch data from the server in real-time. A subscription is a continuously living request that pushes data to the client whenever a specific event happens.
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.
GraphQL Mutations are used for modifying server-side data that includes creating, updating, or deleting it. Learn more about them in this interactive guide.
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.
GraphQL is a query language whereas Kafka is an event stream platform. In this piece, let’s look at GraphQL, Kafka APIs, and a few differences between them.
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.
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.