0.0.11 • Published 4 years ago
@o/gqless-schema v0.0.11
@gqless/schema
Creates a gqless
schema from a GraphQL endpoint.
- Codegen (typesafe) - outputs an array containing JS sourcecode, used by the CLI
- Runtime (not-typesafe) - creates a schema in the browser/node without codegen
Usage
Codegen
import { Codegen, fetchSchema } from '@gqless/schema'
const schemaDefs = await fetchSchema(fetchQuery)
const codegen = new Codegen(schemaDefs, { typescript: true })
const files = codegen.generate()
// => { path: string, contents: string }[]
0.0.10
4 years ago
0.0.11
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.6
4 years ago
0.0.5
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago
0.0.1-alpha.34
4 years ago
0.0.1-alpha.33
4 years ago
0.0.1-alpha.32
4 years ago
0.0.1-alpha.31
4 years ago