osa2gql

1.2.0 • Public • Published

Conver openapi to graphql

Usage

npm install osa2gql -g

osa2gql <docs-file-patterns> [outputPath]

For more docs-file-patterns, please see the glob-primer of node-glob

Please wrap the docs-file-patterns in quotation marks for prevent your command-line tool decode it

Note: Please only select the open-api main doc, $ref files will auto resoled by tool

Example

// This will output content in console
osa2gql '/doc-path/*/*.json'

// This will write content into the file
osa2gql '/doc-path/*/*.json' ./output.graphql

License

To a detailed explanation on how things work, checkout the openapi-to-graphql doc and node-glob

MIT license, Copyright (c) 2022-present, Idler.zhu

Readme

Keywords

none

Package Sidebar

Install

npm i osa2gql

Weekly Downloads

1

Version

1.2.0

License

MIT

Unpacked Size

11.1 kB

Total Files

8

Last publish

Collaborators

  • idler_z