core

package
v0.0.0-...-042d8fe Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const TAG_KEY = "graphqlgo"

Variables

This section is empty.

Functions

func GetField

func GetField(args struct {
	Field   *reflect.StructField
	Resolve graphql.FieldResolveFn
}) (field graphql.Field)

func GetSchemaFromResolvers

func GetSchemaFromResolvers(resolvers []*Resolver) *graphql.Schema

Types

type Describable

type Describable struct {
	Description string
}

type Field

type Field struct {
}

type Input

type Input struct {
	Object
}

type Mutation

type Mutation struct {
	Operation
}

type Named

type Named struct {
	Name string
}

type Object

type Object struct {
	Named
	Describable
	graphql.Type
	Fields []*Field
}

func GetObjectFromsStruct

func GetObjectFromsStruct(instance interface{}, opts ...interface{}) (obj Object)

type Operation

type Operation struct {
	Named
	Describable
	Inputs  []*Input
	Output  *Object
	Handler interface{}
}

type Query

type Query struct {
	Operation
}

type Resolver

type Resolver struct {
	Named
	Describable
	Queries   []*Query
	Mutations []*Mutation
}

Jump to

Keyboard shortcuts

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