osa2gql
v1.2.0
Published
# Usage
Downloads
3
Readme
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