gqlscalar

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 9 Imported by: 0

README

gqlscalar

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MongoRegistry

func MongoRegistry() *bsoncodec.Registry

Types

type DateTime

type DateTime time.Time

func (DateTime) MarshalGQL

func (x DateTime) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (*DateTime) UnmarshalGQL

func (x *DateTime) UnmarshalGQL(v any) error

UnmarshalGQL implements the graphql.Unmarshaler interface

type ObjectId

type ObjectId primitive.ObjectID

func (ObjectId) Hex

func (x ObjectId) Hex() string

func (ObjectId) IsZero

func (x ObjectId) IsZero() bool

func (ObjectId) MarshalGQL

func (x ObjectId) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (ObjectId) MarshalJSON

func (x ObjectId) MarshalJSON() ([]byte, error)

func (ObjectId) MarshalText

func (x ObjectId) MarshalText() ([]byte, error)

func (ObjectId) String

func (x ObjectId) String() string

func (ObjectId) Timestamp

func (x ObjectId) Timestamp() time.Time

func (*ObjectId) UnmarshalGQL

func (x *ObjectId) UnmarshalGQL(v any) error

UnmarshalGQL implements the graphql.Unmarshaler interface

func (*ObjectId) UnmarshalJSON

func (x *ObjectId) UnmarshalJSON(b []byte) error

func (*ObjectId) UnmarshalText

func (x *ObjectId) UnmarshalText(b []byte) error

Jump to

Keyboard shortcuts

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