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
Stop Storing Third-Party Tokens in Your Database Icon
Stop Storing Third-Party Tokens in Your Database

Auth0 Token Vault handles secure token storage, exchange, and refresh for external providers so you don't have to build it yourself.

Rolling your own OAuth token storage can be a security liability. Token Vault securely stores access and refresh tokens from federated providers and handles exchange and renewal automatically. Connected accounts, refresh exchange, and privileged worker flows included.
Try Auth0 for 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