JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 23
  • Score
    100M100P100Q45943F
  • License ISC

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

Package Exports

  • generate-query-graphql

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (generate-query-graphql) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

generate-query-graphql

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

Currently version, i only apply with Hasura

Installation

npm install generate-query-graphql [--dev]

Usage

We can you command line or file yaml config to generate query

  1. Command line
gengq --graphqlUrl https://demo.hasura.io/v1/graphql --secret demo --destDirPath hasura
  1. 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
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