graphql

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TAG          = `gimgraphql`
	TAG_NULLABLE = `nullable`
)

Variables

View Source
var GraphqlModule = gim.Module{
	Name:      "GraphqlModule",
	Providers: []interface{}{newGraphqlService},
	Exports:   []interface{}{newGraphqlService},
}

Functions

func GetContext

func GetContext(c context.Context) *gin.Context

Types

type GraphqlService

type GraphqlService struct {
	// contains filtered or unexported fields
}

func (*GraphqlService) AddMutation

func (svc *GraphqlService) AddMutation(name string, mutation *graphql.Field)

func (*GraphqlService) AddQuery

func (svc *GraphqlService) AddQuery(name string, query *graphql.Field)

func (*GraphqlService) BuildSchema

func (svc *GraphqlService) BuildSchema() *graphql.Schema

Jump to

Keyboard shortcuts

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