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
AI-generated apps that pass security review Icon
AI-generated apps that pass security review

Stop waiting on engineering. Build production-ready internal tools with AI—on your company data, in your cloud.

Retool lets you generate dashboards, admin panels, and workflows directly on your data. Type something like “Build me a revenue dashboard on my Stripe data” and get a working app with security, permissions, and compliance built in from day one. Whether on our cloud or self-hosted, create the internal software your team needs without compromising enterprise standards or control.
Try Retool 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