# Translation domain operations
query GetTranslation($id: ID!) {
  translation(id: $id) {
    id
    name
    language
    content
    work { id name }
    createdAt
    updatedAt
  }
}

query Translations($workId: ID!, $language: String, $limit: Int, $offset: Int) {
  translations(workId: $workId, language: $language, limit: $limit, offset: $offset) {
    id
    name
    language
    createdAt
  }
}

mutation CreateTranslation($input: TranslationInput!) {
  createTranslation(input: $input) {
    id
    name
    language
    createdAt
  }
}

mutation UpdateTranslation($id: ID!, $input: TranslationInput!) {
  updateTranslation(id: $id, input: $input) {
    id
    name
    language
    updatedAt
  }
}

mutation DeleteTranslation($id: ID!) {
  deleteTranslation(id: $id)
}
