gql

package
v0.0.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package gql provides a GraphQL schema to Go struct code generator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Implements  []byte
	Definitions []byte
}

type Schema2Go

type Schema2Go struct {
	Schema *ast.Schema
	Items  types.Map[Item]
}

func NewSchema2Go

func NewSchema2Go(filePath string) (*Schema2Go, error)

NewSchema2Go returns a new Schema2Go instance.

func (*Schema2Go) WriteToDir

func (s *Schema2Go) WriteToDir(dir string) error

WriteToDir writes all the converted graphql types to the given directory.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL