routing

package
v0.0.0-...-91c56de Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Fields = graphql.Fields{

	"home": &graphql.Field{
		Type: graphql.String,
		Resolve: func(p graphql.ResolveParams) (interface{}, error) {
			return controller.Home()
		},
	},
	"saveData": &graphql.Field{
		Type: graphql.String,
		Resolve: func(p graphql.ResolveParams) (interface{}, error) {
			return controller.SaveData()
		},
	},
}

Fields are the graphql url targets

View Source
var Schema, _ = graphql.NewSchema(schemaConfig)

Schema is the params schema

Functions

func GetResult

func GetResult(v url.Values, s graphql.Schema) *graphql.Result

GetResult is returning graphql result

Types

This section is empty.

Jump to

Keyboard shortcuts

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