resolvers

package
v0.0.0-...-c869e04 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowedMonth

func AllowedMonth(month int) bool

AllowedMonth validates calendar months

func AllowedNetWorthYear

func AllowedNetWorthYear(year int) bool

AllowedNetWorthYear validates net worth years

func AllowedYear

func AllowedYear(year int) bool

AllowedYear validates years

func AnnualBudget

func AnnualBudget(params graphql.ResolveParams) (interface{}, error)

AnnualBudget resolve annual budgets

func AssetsLiabilities

func AssetsLiabilities(params graphql.ResolveParams) (interface{}, error)

AssetsLiabilities resolve assets and liabilities

func Budget

func Budget(params graphql.ResolveParams) (interface{}, error)

Budget resolve annual budgets

func CurrentUser

func CurrentUser(params graphql.ResolveParams) (interface{}, error)

CurrentUser resolve net worth items

func MonthlyStatistic

func MonthlyStatistic(params graphql.ResolveParams) (interface{}, error)

MonthlyStatistic resolve annual MonthlyStatistics

func NetWorth

func NetWorth(params graphql.ResolveParams) (interface{}, error)

NetWorth resolve net worth items

func Sessions

func Sessions(params graphql.ResolveParams) (interface{}, error)

Sessions resolve sessions

Types

type SerializedUser

type SerializedUser struct {
	ID        int          `json:"id"`
	Email     string       `json:"email"`
	FirstName nulls.String `json:"firstName"`
	LastName  nulls.String `json:"lastName"`
	Admin     bool         `json:"admin"`
	AvatarURL string       `json:"avatarUrl"`
}

SerializedUser is the response for graphql

func SerializeUser

func SerializeUser(user *models.User) SerializedUser

SerializeUser will convert a database user to a graphql user

Jump to

Keyboard shortcuts

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