gql

package
v0.0.0-...-275689c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MutationType *graphql.Object
View Source
var QueryType *graphql.Object
View Source
var UserType = graphql.NewObject(
	graphql.ObjectConfig{
		Name: "User",
		Fields: graphql.Fields{
			"id": &graphql.Field{
				Type: graphql.Int,
			},
			"email": &graphql.Field{
				Type: graphql.String,
			},
			"firstName": &graphql.Field{
				Type: graphql.String,
			},
			"lastName": &graphql.Field{
				Type: graphql.String,
			},
			"isOwner": &graphql.Field{
				Type: graphql.Boolean,
			},
			"token": &graphql.Field{
				Type: graphql.String,
			},
		},
	},
)

Functions

func Initialize

func Initialize()

Types

type G

type G struct{} // used for adding fields

func (*G) InitializeUser

func (g *G) InitializeUser()

Jump to

Keyboard shortcuts

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