grapher

package
v0.0.0-...-f48be0a Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(in *handler.Server, opts ...Option) error

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

func Cache

func Cache(cache graphql.Cache) Option

func DefaultGET

func DefaultGET() Option

func DefaultMultipartForm

func DefaultMultipartForm() Option

func DefaultPOST

func DefaultPOST() Option

func DefaultWebsockets

func DefaultWebsockets() Option

Default Transportation

func Ent

func Ent(client entgql.TxOpener) Option

Ent allows for you to use ent.FromContext in your resolvers. Be sure to pass a context with your ent client to your request. Use ent.NewContext

func GET

func GET(in *transport.GET) Option

func MultipartForm

func MultipartForm(in *transport.MultipartForm) Option

func POST

func POST(in *transport.POST) Option

func WithExtensions

func WithExtensions(extensions ...graphql.HandlerExtension) Option

Extensions

func WithTransports

func WithTransports(transports ...graphql.Transport) Option

Transport

Jump to

Keyboard shortcuts

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