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.
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.
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.
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.
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.