mydearxym
12/17/2017 - 6:18 AM

posts

{
  post(id: 21) {
    id
    title
    body
    author {
      id
    }
    author {
      username
      id
      nickname
    }
    comments(first: 1) {
      author {
        username
      }
    }
    views
  }
}
{
  allPosts {
    id
    title
    body
    starredUsers {
      username
    }
  }
}
mutation {
  deletePost(postId: 31) {
    id
    title
  }
}



{
  "authorization": "Bearer fake-token"
}
mutation {
  starPost(postId: 21, userId: 39) {
    id
    title
    body
  }
}


{
  "authorization": "Bearer fake-token"
}
mutation {
  createPost(title: "wo the fuck", body: "hahaha") {
    title
    body
  }
}



{
  "authorization": "Bearer fake-token"
}