Simple convenience wrapper for the got HTTP library to make GraphQL queries. Version 0.1.2, last updated in 2017. It is a lightweight alternative to Apollo Client and Relay, offering minimal API over got with support for query, variables, operationName, and bearer token authentication. No longer actively maintained; depends on got v7.x. Not suitable for production GraphQL clients compared to more modern alternatives.
npm install graphql-gotNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: creating a GraphQL query with bearer token authentication and logging the response.
Use a more recent library like graphql-request or apollo-upload-client.
Switch to actively maintained GraphQL client libraries.
Always include http:// or https:// in the URL.
Provide a valid string query: graphqlGot(url, { query: '{ field }' })Use default import: const graphqlGot = require('graphql-got')