schema

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/schema provides generator for GraphQL gateway's schema

Index

Constants

This section is empty.

Variables

View Source
var ScalarTypes = map[string]bool{
	"String":   true,
	"Int":      true,
	"Int16":    true,
	"Int64":    true,
	"Double":   true,
	"Float":    true,
	"DateTime": true,
	"Binary":   true,
	"Stream":   true,
	"Boolean":  true,
	"Guid":     true,
}

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
	Associations map[string]map[string]string
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(schema shared.Schema) *Generator

NewGenerator returns initialized generator

func (*Generator) Generate

func (g *Generator) Generate()

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

Jump to

Keyboard shortcuts

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