Minimal GraphQL client supporting Node and browsers for scripts or simple apps. Most simple & lightweight GraphQL client. Promise-based API (works with async / await) ESM native package (CJS build is included for now as well, but will eventually be removed) TypeScript support. Isomorphic (works with Node/browsers). Installing and configuring GraphQL Code Generator requires a few steps in order to get end-to-end typed GraphQL operations using the provided graphql() helper. If you want to change the endpoint after the GraphQLClient has been initialized, you can use the setEndpoint() function. It's possible to recalculate the global client headers dynamically before each request. If you want to use non-standard JSON types, you can use your own JSON serializer.

Features

  • Authentication via HTTP header
  • Pass headers in each request
  • Custom JSON serializer
  • Use GraphQL Document variables
  • GraphQL Document variables
  • Use a custom fetch method

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow graphql-request

graphql-request Web Site

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of graphql-request!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Software Development Software

Registered

2023-02-27