graphql

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GinGraphQLHandlerFunc added in v1.1.0

func GinGraphQLHandlerFunc() gin.HandlerFunc

GinGraphQLHandlerFunc returns a http.HandlerFunc that can be used to serve the GraphiQL IDE.

func GinHandler added in v1.1.0

func GinHandler(root any, content embed.FS) gin.HandlerFunc

GinHandler returns a http.Handler that can be used to serve the GraphQL API.

func NewGraphQLHandlerFunc

func NewGraphQLHandlerFunc() http.HandlerFunc

func NewHandler

func NewHandler(root any, content embed.FS) *relay.Handler

func RegisterHttpRouter

func RegisterHttpRouter(r *gin.Engine, root any, content embed.FS, isDev ...bool)

func String

func String(content embed.FS) (string, error)

String reads the .graphql schema files from the embed.FS, concatenating the files together into one string.

If this method complains about not finding functions AssetNames() or MustAsset(), run `go generate` against this package to generate the functions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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