1.2.3 • Published 3 years ago

graphql-export v1.2.3

Weekly downloads
16
License
MIT
Repository
github
Last release
3 years ago

graphql-export

This is a teeny tiny program that helps to export your graphql queries from the server to insomnia/postman graphql request collections

Requirements

Yarn package manager

NodeJS

Quick Use

yarn global add graphql-export

// For postman exports
graphql-export -u http://my-graph-ql-server-root -f postman

//For insomnia exports
graphql-export -u http://my-graph-ql-server-root -f insomnia

After running the command, an export.json file is generated which you can then import into insomnia or postman api client.

For insomnia, you might need to first create a folder and then import the file into it.

Passing custom headers

You might need to pass headers to your graphql server, sometimes for authentication. You can do that using the -H option.

Example

graphql-export -u http://my-graph-ql-server-root -f insomnia -H "x-hasura-secret: xxx-xxx-xxx"

If you need to pass multiple headers, you can follow the below sample

graphql-export -u http://my-graph-ql-server-root -f insomnia -H "header1: value1" "header2: value2"

1.2.3

3 years ago

1.2.2

4 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago