resolver

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package graphql/resolver provides generator for GraphQL gateway's resolver

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToCamelCase

func ToCamelCase(src string) string

func ToLowerCamelCase

func ToLowerCamelCase(src string) string

Types

type Generator

type Generator struct {
	TypeMap map[string]string
	NameMap map[string]string
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(schema shared.Schema) *Generator

NewGenerator returns initialized generator

func (*Generator) GenSubAll

func (g *Generator) GenSubAll(source []shared.OneCType) string

func (*Generator) Generate

func (g *Generator) Generate()

Generate generates the GraphQL resolver and writes it to ./odata folder

Jump to

Keyboard shortcuts

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