0.0.1-11 • Published 7 years ago

graphql-url-to-typescript v0.0.1-11

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

graphql-url-to-typescript

Generate TypeScript type definitions from an introspectable GraphQL server URL.

CLI

$ graphql-url-to-typescript --help

  Usage: graphql-url-to-typescript [options] <url> [header]

  Generate TypeScript type definitions from an introspectable GraphQL server url.


  Options:

    -V, --version             output the version number
    -o, --output-file <path>  output file for generated type definitions, by default redirects to stdout
    -a, --no-field-arguments  remove the special property `$__arguments`
    -t, --no-field-types      remove the special properties `$__objects` and `$__scalars`
    -h, --help                output usage information

  Example:

    graphql-url-to-typescript -o ./github.d.ts https://api.github.com/graphql 'Authorization:Bearer <your GitHub personal access token>'

  Notes:

    `$__arguments` contains the type definitions of field arguments
    `$__scalars`   gathers the scalar properties of an interface
    `$__objects`   gathers the object properties of an interface
0.0.1-11

7 years ago

0.0.1-10

7 years ago

0.0.1-9

7 years ago

0.0.1-8

7 years ago

0.0.1-7

7 years ago

0.0.1-6

7 years ago

0.0.1-5

7 years ago

0.0.1-4

7 years ago

0.0.1-3

7 years ago

0.0.1-2

7 years ago

0.0.1-1

7 years ago

0.0.1-0

7 years ago