1.0.28 • Published 2 years ago

graphql-testkit v1.0.28

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

GraphQL Testkit

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

npm.io

Install

// with npm
npm install -g graphql-testkit

// with yarn
yarn global add graphql-testkit

Working Demo

npm.io

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

Output

An output directory is created in the current working 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

output/api.spacex.land/graphql/collections.json

License

MIT

1.0.28

2 years ago

1.0.27

2 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.20

3 years ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago