graphql-request: Detailed Overview & Metrics

v6.1.0(12 months ago)

This package is actively maintained.Types definitions are bundled with the npm packageNumber of direct dependencies: 2Monthly npm downloads

graphql-request is a lightweight and flexible JavaScript library for making GraphQL queries to a server. It simplifies the process of sending GraphQL requests by providing a simple and intuitive API that allows you to send queries, mutations, and subscriptions with ease. graphql-request supports features like caching, error handling, and batching to optimize network requests and improve performance.

Compared to other GraphQL client libraries like Apollo Client or Relay, graphql-request is more lightweight and focused on simplicity. It is suitable for smaller projects or when you need a quick and efficient way to interact with a GraphQL API without the overhead of a larger client library.

Alternatives:
apollo-client+
urql+
relay-runtime+
graphql-hooks+
apollo-fetch+
lokka+
graphql.js+
fetchql+
graphql-zeus+
micro-graphql-react+

Tags: javascriptgraphqlclientquerymutation