Documentation ¶
Index ¶
- func MarshalID(id external.ObjectID) graphql.Marshaler
- func MarshalPreferences(p *Prefs) graphql.Marshaler
- func MarshalTimestamp(t time.Time) graphql.Marshaler
- func UnmarshalID(v any) (external.ObjectID, error)
- func UnmarshalTimestamp(v any) (time.Time, error)
- type Address
- type Banned
- type Point
- type Prefs
- type Query
- type SearchArgs
- type Tier
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalPreferences ¶
func MarshalTimestamp ¶
if the type referenced in .gqlgen.yml is a function that returns a marshaller we can use it to encode and decode onto any existing go type.
func UnmarshalID ¶
And the same for the unmarshaler
Types ¶
type Point ¶
Point is serialized as a simple array, eg [1, 2]
func (Point) MarshalGQL ¶
MarshalGQL implements the graphql.Marshaler interface
func (*Point) UnmarshalGQL ¶
type SearchArgs ¶
type Tier ¶
type Tier uint
A custom enum that uses integers to represent the values in memory but serialize as string for graphql
func TierForStr ¶
func (Tier) MarshalGQL ¶
func (*Tier) UnmarshalGQL ¶
type User ¶
type User struct { ID external.ObjectID Name string Created time.Time // direct binding to builtin types with external Marshal/Unmarshal methods Modified *time.Time // direct binding to builtin types with external Marshal/Unmarshal methods ValPrefs Prefs // external un/marshal that act on pointers PtrPrefs *Prefs IsBanned Banned Address Address Tier Tier }
Click to show internal directories.
Click to hide internal directories.