Skip to content

Justinidlerz/conver-openapi-to-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published