New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

graphql-testkit

Package Overview
Dependencies
Maintainers
0
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-testkit

> A utility tool that generates a postman collection with all the mutations and queries that your GraphQL endpoint exposes.

  • 1.0.35
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
0
Weekly downloads
 
Created
Source

GraphQL Testkit

A utility tool that generates a postman collection with all the mutations and queries that your GraphQL endpoint exposes.

Install

// with npm
npm install -g graphql-testkit

// with yarn
yarn global add graphql-testkit

Working Demo

Usage

graphql-testkit \ 
--endpoint=https://api.spacex.land/graphql\ 
--header="Authorization:123,x-ws-system-id=10" \
--maxDepth=4
  • endpoint (Required)

    The GraphQL endpoint that you want to generate the postman collection for

  • header (optional)

    Comma separated list of http headers that you need to send to you GraphQL API.

  • maxDepth (optional)

    The maximum you want to nest the generated queries and mutations. Default value is 4

  • outputDirectory (optional)

    The directory where the output is saved. Default value is "./output"

Output

An output directory is created in the outputDirectory directory. A folder structure based on endpoint will be created, which will contain the Postman collection(collections.json)

For example

endpoint=https://api.spacex.land/graphql

Output Directory

${outputDirectory}/api.spacex.land/graphql/collections.json

License

MIT

Keywords

FAQs

Package last updated on 26 Aug 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc