gqlpq
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

gqlpq

Utility to parse GraphQL files from your client and generate list of persisted queries. It supports queries with fragments.

Installation

$ yarn add gqlpg

Usage

$ gqlpq --input path/to/graphql --output pq.json --typename true --filter "((\.graphql)|(\.gql))$"

Example

This graphql file will be used to generate persisted queries:

query Book {
    books {
        title
        year
        author
    }
}

Generated output:

{"6fa3cc11f1c1adf09af3dbcc54829972bb8fbfa7be74e3811b1c517e01ac9e30":"query Book {\n  books {\n    title\n    year\n    author\n    __typename\n  }\n}\n"}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.124latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.124
0.1.01

Package Sidebar

Install

npm i gqlpq

Weekly Downloads

25

Version

0.1.1

License

MIT

Unpacked Size

16 kB

Total Files

21

Last publish

Collaborators

  • dantese