graphql

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

README

GraphQL

The preconfigured graphql.Schema provides root objects for Query, Mutation and Subscription.

Use the schema provided by graphql.NewSchema as a basis for your graphql app.

server := graphql.NewSchema(...)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSchema

func NewSchema(options *NewSchemaOptions) (*graphql.Schema, error)

Types

type MutationObject

type MutationObject struct {
	graphql.Object
}

func NewMutation

func NewMutation() *MutationObject

type NewSchemaOptions

type NewSchemaOptions struct {
	Query        *QueryObject
	Mutation     *MutationObject
	Subscription *SubscriptionObject
}

type QueryObject

type QueryObject struct {
	graphql.Object
}

func NewQuery

func NewQuery() *QueryObject

type SubscriptionObject

type SubscriptionObject struct {
	graphql.Object
}

func NewSubscribtion

func NewSubscribtion() *SubscriptionObject

Jump to

Keyboard shortcuts

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