graphql

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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)

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