JSPM

hql-cli

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q29942F
  • License MIT

A CLI tool which initates a GraphiQL playground with hql-tag support.

Package Exports

  • hql-cli

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 (hql-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

hql-cli: GraphiQL playground

This is a CLI tool which initates a GraphiQL playground with hql-tag support.

To initate a fresh GraphiQL:

npx hql-cli -i <URL-OF-THE-GRAPHQL-ENDPOINT>

or 

npx hql-cli --init <URL-OF-THE-GRAPHQL-ENDPOINT>

or 

npx hql-cli // 'http://localhost:4000/graphql' is considered as endpoint

This creates a new folder hql-graphiql in the current directory with complete configurations. If no URL is passed, http://localhost:4000/graphql is considered as default value.

Modify URL

In an existing GraphiQL playground:

Setup using hql-cli

Change the fetch URL graphQLFetcher function in hql-graphiql/src/index.js file

Pre-existing setup

Refer to template/index.js template to add support for hql-tag in your setup.

TODO:

  • Fix GraphiQL warning for hql-specific arguements