Skip to content

Instantly share code, notes, and snippets.

@manakuro
Created December 10, 2021 04:39
Show Gist options
  • Select an option

  • Save manakuro/9d46fad9107cdf7944f2ac01a1df17aa to your computer and use it in GitHub Desktop.

Select an option

Save manakuro/9d46fad9107cdf7944f2ac01a1df17aa to your computer and use it in GitHub Desktop.
// CreateTodoInput represents a mutation input for creating todos.
type CreateTodoInput struct {
Name *string
Status *todo.Status
Priority *int
CreatedAt *time.Time
UpdatedAt *time.Time
UserID *int
}
...
// UpdateTodoInput represents a mutation input for updating todos.
type UpdateTodoInput struct {
ID int
Name *string
Status *todo.Status
Priority *int
UserID *int
ClearUser bool
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment