Socket
Socket
Sign inDemoInstall

hql-cli

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hql-cli

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


Version published
Weekly downloads
0
Maintainers
1
Install size
110 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 05 Jul 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc