gogql

package module
v0.0.0-...-a82d261 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: MIT Imports: 4 Imported by: 0

README

gogql

Library to build GraphQL Schema in Golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchemaBuilder

type SchemaBuilder struct {
	Query    *graphql.Object
	Mutation *graphql.Object
	// contains filtered or unexported fields
}

func NewSchemaBuilder

func NewSchemaBuilder() *SchemaBuilder

func (*SchemaBuilder) AddMutationAction

func (schemaBuilder *SchemaBuilder) AddMutationAction(name string, description string, object interface{}, resolver func(graphql.ResolveParams) (interface{}, error)) *SchemaBuilder

func (*SchemaBuilder) AddQueryAction

func (schemaBuilder *SchemaBuilder) AddQueryAction(name string, description string, object interface{}, resolver func(graphql.ResolveParams) (interface{}, error)) *SchemaBuilder

func (*SchemaBuilder) Build

func (schemaBuilder *SchemaBuilder) Build() graphql.Schema

Jump to

Keyboard shortcuts

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