model

package
v0.0.0-...-72cdbf8 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalID

func MarshalID(id primitive.ObjectID) graphql.Marshaler

func UnmarshalID

func UnmarshalID(v interface{}) (primitive.ObjectID, error)

Types

type NewUser

type NewUser struct {
	Email    string
	Name     string
	UserName string
	Password string
}

type User

type User struct {
	ID       primitive.ObjectID `bson:"_id,omitempty"`
	Email    string
	Name     string
	UserName string
	Password string
}

Jump to

Keyboard shortcuts

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