# graphql-api-fetch

> GraphQL client powered by axios

Latest version **1.0.2** (published 2022-09-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install graphql-api-fetch
pnpm add graphql-api-fetch
yarn add graphql-api-fetch
bun add graphql-api-fetch
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-09-12 |
| First published | 2022-09-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 19.6 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Gaurav |
| Maintainers | grvsh02 |
| Keywords | graphql, client, fetch, request, query, mutation |

## Links

- npm: https://www.npmjs.com/package/graphql-api-fetch
- Repository: https://github.com/grvsh02/GraphQLFetch
- Homepage: https://github.com/grvsh02/GraphQLFetch#readme
- Issues: https://github.com/grvsh02/GraphQLFetch/issues
- npm.io page: https://npm.io/package/graphql-api-fetch

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.27.2

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2022-09-12
- 1.0.1 — 2022-09-12
- 1.0.0 — 2022-09-12

## README

# GraphQLFetch
A GraphQL fetch library in Javasript

## Installation

First, install the library:

```bash
npm i graphql-api-fetch
```

## Usage

```js
import { GraphQLFetch } from 'graphql-api-fetch';

const QUERY = `
      query ($keyword: String){
        users(keyword: $keyword){
            users{
                id
                email
                firstName
                lastName
            }
        }
      }`;

GraphQLFetch({
            query: QUERY,
            variables: { keyword } // optional
        }).then((res) => {
            if (res.errors) {
                errors = res.errors.map((error) => error.message);
            }
            else usersData = res.data.users.users;
        });
```

## Contributers

- [@grvsh02](https://github.com/grvsh02)

---
_Source: https://npm.io/package/graphql-api-fetch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
