@o/gqless-schema

Creates a gqless schema from a GraphQL endpoint.

Usage no npm install needed!

<script type="module">
  import oGqlessSchema from 'https://cdn.skypack.dev/@o/gqless-schema';
</script>

README

@gqless/schema

Creates a gqless schema from a GraphQL endpoint.

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 }[]