# Like domain operations
query GetLike($id: ID!) {
  like(id: $id) {
    id
    createdAt
    user { id username }
    work { id name }
    translation { id name }
    comment { id }
  }
}

query Likes($workId: ID, $translationId: ID, $commentId: ID) {
  likes(workId: $workId, translationId: $translationId, commentId: $commentId) {
    id
    user { id username }
    createdAt
  }
}

mutation CreateLike($input: LikeInput!) {
  createLike(input: $input) {
    id
    createdAt
    user { id username }
  }
}

mutation DeleteLike($id: ID!) {
  deleteLike(id: $id)
}
