gql

package
v0.0.0-...-8c16a7d Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertBadRequestError

func ConvertBadRequestError(ctx context.Context, cause string, message string) *gqlerror.Error

ConvertBadRequestError converts the known error into *gqlerror.Error

func ConvertUnexpectError

func ConvertUnexpectError(ctx context.Context, err error) *gqlerror.Error

ConvertUnexpectError converts the given unexpected error into *gqlerror.Error

func Handler

func Handler(schema graphql.ExecutableSchema, isIntrospectionEnabled bool) http.Handler

Handler returns the gqlgen Handler

Types

type ErrorCode

type ErrorCode string

ErrorCode represents the code returned to the client

func (ErrorCode) String

func (e ErrorCode) String() string

String returns the string representation of the ErrorCode

Jump to

Keyboard shortcuts

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