model

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUserInput

type CreateUserInput struct {
	Email string `json:"email"`
	Name  string `json:"name"`
}

type CreateUserPayload

type CreateUserPayload struct {
	User   *User    `json:"user"`
	Errors []*Error `json:"errors,omitempty"`
}

type DeleteUserPayload

type DeleteUserPayload struct {
	Success bool     `json:"success"`
	Errors  []*Error `json:"errors,omitempty"`
}

type Error

type Error struct {
	Message string  `json:"message"`
	Field   *string `json:"field,omitempty"`
	Code    *string `json:"code,omitempty"`
}

type Mutation

type Mutation struct {
}

type PageInfo

type PageInfo struct {
	HasNextPage     bool    `json:"hasNextPage"`
	HasPreviousPage bool    `json:"hasPreviousPage"`
	StartCursor     *string `json:"startCursor,omitempty"`
	EndCursor       *string `json:"endCursor,omitempty"`
}

type Query

type Query struct {
}

type UpdateUserInput

type UpdateUserInput struct {
	Email *string `json:"email,omitempty"`
	Name  *string `json:"name,omitempty"`
}

type UpdateUserPayload

type UpdateUserPayload struct {
	User   *User    `json:"user"`
	Errors []*Error `json:"errors,omitempty"`
}

type User

type User struct {
	ID        string `json:"id"`
	Email     string `json:"email"`
	Name      string `json:"name"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
}

type UserConnection

type UserConnection struct {
	Edges    []*UserEdge `json:"edges"`
	PageInfo *PageInfo   `json:"pageInfo"`
}

type UserEdge

type UserEdge struct {
	Node   *User  `json:"node"`
	Cursor string `json:"cursor"`
}

Jump to

Keyboard shortcuts

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