# generate-query-graphql

> Generate query graphql, it's help you working faster on CRUD

Latest version **1.0.9** (published 2021-02-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install generate-query-graphql
pnpm add generate-query-graphql
yarn add generate-query-graphql
bun add generate-query-graphql
```

Provides the command `gengq`.

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2021-02-28 |
| First published | 2020-08-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 31.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ceck |
| Maintainers | ceck |
| Keywords | graphql, generate, query graphql, hasura, hasura generate query |

## Links

- npm: https://www.npmjs.com/package/generate-query-graphql
- npm.io page: https://npm.io/package/generate-query-graphql

## Dependencies (8)

- [del](https://npm.io/package/del.md) ^5.1.0
- [graphql](https://npm.io/package/graphql.md) ^15.3.0
- [commander](https://npm.io/package/commander.md) ^6.0.0
- [graphqurl](https://npm.io/package/graphqurl.md) ^0.3.3
- [pluralize](https://npm.io/package/pluralize.md) ^8.0.0
- [config-yaml](https://npm.io/package/config-yaml.md) ^1.1.6
- [@types/lodash](https://npm.io/package/@types/lodash.md) ^4.14.165
- [@types/pluralize](https://npm.io/package/@types/pluralize.md) 0.0.29

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 1.0.9 (latest) — 2021-02-28
- 1.0.8 — 2020-12-16
- 1.0.7 — 2020-08-16
- 1.0.6 — 2020-08-13
- 1.0.5 — 2020-08-13
- 1.0.4 — 2020-08-13
- 1.0.3 — 2020-08-13
- 1.0.2 — 2020-08-13
- 1.0.1 — 2020-08-13
- 1.0.0 — 2020-08-13

## README

# generate-query-graphql

> It will help generate query for graphql, help you working CRUD faster

> Currently version, i only apply with Hasura
## Installation
```shell
npm install generate-query-graphql [--only=dev]
```
## Usage
We can use command line or file yaml config to generate query
 1. Command line
```shell
gengq --graphqlUrl https://demo.hasura.io/v1/graphql --secret demo --destDirPath hasura
```
 2. File config
 The first thing, you should create file config with name `gengq.yaml` at root path project
 This is a example content inside file config
 
```js
schema:
	graphqlUrl: https://demo.hasura.io/v1/graphql
	secret: demo
	destDirPath: hasura
```
I will explain some concept right here about config to run generate
> graphqlUrl: url graphql of instance Hasura

> secret: secret of instance Hasura

> destDirPath: the path of destination that you want to generate here

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