gimgraphql

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: Apache-2.0 Imports: 6 Imported by: 1

README

gim-graphql

graphql module based on gim

Documentation

Index

Constants

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

Variables

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

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) AddSubscription

func (svc *GraphqlService) AddSubscription(name string, subscription *graphql.Field)

func (*GraphqlService) BuildSchema

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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