1.0.10 • Published 3 years ago

gql-template-doc v1.0.10

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

GQL-Template-Doc

Templating and generating GraphQL schema from endpoint.
(Introspection should be enabled.)

Why you should disable graphql inspection in production
General
Apollo

Installation

Using npm :

# install local
$ npm i gql-template-doc
# install global
$ npm i -g gql-template-doc

Usage

gql-template-doc -e=<endpoint> [--options]
requiredaliasoptionsdefaultValuedescription
O-e--endpointGraphQL Endpoint for generate document.
-o--output"./src"Output file directory.
--pb, --partialBaseDir"./partials"Partials directory.
--tb, --templateBaseDir"./templates"Templates directory.
-t, --type"Type.html"Type template file name.

How does it works?

  1. Register partials in --partialBaseDir.
  2. Get schema from --endpoint and parse it with gqlinspector-core.
  3. Render templates in --templateBaseDir except type template file.(file name : --type)
  4. Render each types in parsed result using type template file.(file name: --type)
1.0.2

3 years ago

1.0.1

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.10

3 years ago

1.0.0

3 years ago