viewer

package
v0.1.0-alpha.18 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Viewer

type Viewer struct {
	// contains filtered or unexported fields
}

Viewer is the object returned to GraphQL to encode the viewer @graphqltype Viewer

func ViewerResolver

func ViewerResolver(ctx context.Context) (*Viewer, error)

ViewerResolver takes the context and returns the logged in viewer @graphql viewer Query @graphqlreturn viewer @required

func (*Viewer) GetUser

func (v *Viewer) GetUser() *models.User

GetUser returns the node representing the logged in User @graphql User @graphqlreturn user @required

func (*Viewer) LoadViewerContact

func (v *Viewer) LoadViewerContact() (contact *models.Contact, err error)

LoadViewerContact returns the contact information of the viewer @graphql Contact

Jump to

Keyboard shortcuts

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