graphql

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

README

GraphQL

The preconfigured graphql.Schema provides root objects for Query, Mutation and Subscription.

app := fx.New(
	env.Module,
	logrus.Module,
	graphql.Module,
	fx.Invoke(func(schema *graphql.Schema) {
		// use schema here
	}),
)
app.Run()

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Provide(
		fx.Annotated{
			Name:   "query",
			Target: newGraphQlQuery,
		},
		fx.Annotated{
			Name:   "mutation",
			Target: newGraphQlMutation,
		},
		fx.Annotated{
			Name:   "subscription",
			Target: newGraphQlSubscribtion,
		},
		newGraphQlSchema,
	),
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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