# Mutations

# _


## Return type:

  Type: Int - The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.


---

# createAlbum


## Arguments:

  - `input` (CreateAlbumInput!)

## Return type:

  Type: Album
  - `id` (ID)
  - `title` (String)
  - `user` (User)
  - `photos` (PhotosPage)


---

# updateAlbum


## Arguments:

  - `id` (ID!)
  - `input` (UpdateAlbumInput!)

## Return type:

  Type: Album
  - `id` (ID)
  - `title` (String)
  - `user` (User)
  - `photos` (PhotosPage)


---

# deleteAlbum


## Arguments:

  - `id` (ID!)

## Return type:

  Type: Boolean - The `Boolean` scalar type represents `true` or `false`.


---

# createComment


## Arguments:

  - `input` (CreateCommentInput!)

## Return type:

  Type: Comment
  - `id` (ID)
  - `name` (String)
  - `email` (String)
  - `body` (String)
  - `post` (Post)


---

# updateComment


## Arguments:

  - `id` (ID!)
  - `input` (UpdateCommentInput!)

## Return type:

  Type: Comment
  - `id` (ID)
  - `name` (String)
  - `email` (String)
  - `body` (String)
  - `post` (Post)


---

# deleteComment


## Arguments:

  - `id` (ID!)

## Return type:

  Type: Boolean - The `Boolean` scalar type represents `true` or `false`.


---

# createPhoto


## Arguments:

  - `input` (CreatePhotoInput!)

## Return type:

  Type: Photo
  - `id` (ID)
  - `title` (String)
  - `url` (String)
  - `thumbnailUrl` (String)
  - `album` (Album)


---

# updatePhoto


## Arguments:

  - `id` (ID!)
  - `input` (UpdatePhotoInput!)

## Return type:

  Type: Photo
  - `id` (ID)
  - `title` (String)
  - `url` (String)
  - `thumbnailUrl` (String)
  - `album` (Album)


---

# deletePhoto


## Arguments:

  - `id` (ID!)

## Return type:

  Type: Boolean - The `Boolean` scalar type represents `true` or `false`.


---

# createPost


## Arguments:

  - `input` (CreatePostInput!)

## Return type:

  Type: Post
  - `id` (ID)
  - `title` (String)
  - `body` (String)
  - `user` (User)
  - `comments` (CommentsPage)


---

# updatePost


## Arguments:

  - `id` (ID!)
  - `input` (UpdatePostInput!)

## Return type:

  Type: Post
  - `id` (ID)
  - `title` (String)
  - `body` (String)
  - `user` (User)
  - `comments` (CommentsPage)


---

# deletePost


## Arguments:

  - `id` (ID!)

## Return type:

  Type: Boolean - The `Boolean` scalar type represents `true` or `false`.


---

# createTodo


## Arguments:

  - `input` (CreateTodoInput!)

## Return type:

  Type: Todo
  - `id` (ID)
  - `title` (String)
  - `completed` (Boolean)
  - `user` (User)


---

# updateTodo


## Arguments:

  - `id` (ID!)
  - `input` (UpdateTodoInput!)

## Return type:

  Type: Todo
  - `id` (ID)
  - `title` (String)
  - `completed` (Boolean)
  - `user` (User)


---

# deleteTodo


## Arguments:

  - `id` (ID!)

## Return type:

  Type: Boolean - The `Boolean` scalar type represents `true` or `false`.


---

# createUser


## Arguments:

  - `input` (CreateUserInput!)

## Return type:

  Type: User
  - `id` (ID)
  - `name` (String)
  - `username` (String)
  - `email` (String)
  - `address` (Address)
  - `phone` (String)
  - `website` (String)
  - `company` (Company)
  - `posts` (PostsPage)
  - `albums` (AlbumsPage)
  - `todos` (TodosPage)


---

# updateUser


## Arguments:

  - `id` (ID!)
  - `input` (UpdateUserInput!)

## Return type:

  Type: User
  - `id` (ID)
  - `name` (String)
  - `username` (String)
  - `email` (String)
  - `address` (Address)
  - `phone` (String)
  - `website` (String)
  - `company` (Company)
  - `posts` (PostsPage)
  - `albums` (AlbumsPage)
  - `todos` (TodosPage)


---

# deleteUser


## Arguments:

  - `id` (ID!)

## Return type:

  Type: Boolean - The `Boolean` scalar type represents `true` or `false`.


---

