Skip to content

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

Notifications You must be signed in to change notification settings

product-ride/hql-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published