@nbn23/graphql-request
v2.0.2-3
Published
GraphQL request library
Downloads
27
Readme
GraphQL request
GraphQL request is a tiny utility to make simple GraphQL calls. This tool is responsible for managing authentication to secured calls based on Google JWT.
Getting Started
Install graphQL request using npm.
npm install --save @nbn23/graphql-request
Note: GraphQL request assumes a TypeScript environment but it can be use in vanilla javascript.
Usage
const request = await GraphQLRequest.init(audience);
const { test } = await request.call<"test", boolean>({
url,
query,
variables
});