type Query {
    translation(id: ID!): Translation
    translations(workId: ID!, language: String, limit: Int, offset: Int): [Translation!]
}

type Mutation {
    createTranslation(input: TranslationInput!): Translation!
    updateTranslation(id: ID!, input: TranslationInput!): Translation!
    deleteTranslation(id: ID!): Boolean!
}

input TranslationInput {
    name: String!
    language: String!
    content: String
    workId: ID!
}

type Translation {
    id: ID!
    name: String!
    language: String!
    content: String
    workId: ID!
}
