relay

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalID

func MarshalID(kind string, spec interface{}) graphql.ID

func UnmarshalKind

func UnmarshalKind(id graphql.ID) string

func UnmarshalSpec

func UnmarshalSpec(id graphql.ID, v interface{}) error

Types

type BatchedHandler added in v1.2.0

type BatchedHandler struct {
	Schema             *graphql.Schema
	MaxParallelQueries int
}

func (*BatchedHandler) ServeHTTP added in v1.2.0

func (h *BatchedHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type BatchedResponse added in v1.2.0

type BatchedResponse struct {
	ID string `json:"id"`
	graphql.Response
}

type Handler

type Handler struct {
	Schema *graphql.Schema
}

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type RequestData added in v1.2.0

type RequestData struct {
	ID            string
	Query         string                 `json:"query"`
	Variables     map[string]interface{} `json:"variables"`
	OperationName string                 `json:"operationName"`
}

Jump to

Keyboard shortcuts

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