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
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it 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