@openland/spacex-cli
TypeScript icon, indicating that this package has built-in type declarations

6.0.6 • Public • Published

SpaceX GraphQL Compiler

Compiler for SpaceX GraphQL.

Install

yarn add -D @openland/spacex-cli get-graphql-schema

Generate Client

Requirements

Generate Client

SpaceX Compiler generates three files:

  • spacex.definitions.json: Descriptors of all fragments and operations for GraphQL Engines
  • spacex.types.ts: Typescript fragments and operations files
  • spacex.ts: Client itself
get-graphql-schema https://api.example.com/graphql --json > schema.json
yarn spacex-cli compile \
    --path "./src/api/definitions/*.graphql" \
    --schema ./schema.json \
    --output ./src/api/ \
    --name ExampleClient

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @openland/spacex-cli

Weekly Downloads

0

Version

6.0.6

License

none

Unpacked Size

765 kB

Total Files

59

Last publish

Collaborators

  • steve.kite