models

package
v0.0.0-...-5346628 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Post

type Post struct {
	ID    graphql.ID `json:"id" bson:"id,omitempty"`
	Title string     `json:"title" bson:"title,omitempty"`
}

Post ...

type Review

type Review struct {
	ID     graphql.ID `json:"id" bson:"id, omitempty"`
	Stars  int        `json:"stars" bson:"stars,omitempty"`
	PostID graphql.ID `json:"postID" bson:"postID,omitempty"`
}

Review ...

type User

type User struct {
	ID              graphql.ID `json:"id" bson:"id, omitempty"`
	CanWriteReviews bool       `json:"canWriteReviews" bson:"canWriteReviews,omitempty"`
}

User ...

Jump to

Keyboard shortcuts

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