type Query {
    author(id: ID!): Author
    authors(limit: Int, offset: Int, search: String, countryId: ID): [Author!]
}

type Mutation {
    createAuthor(input: AuthorInput!): Author!
    updateAuthor(id: ID!, input: AuthorInput!): Author!
    deleteAuthor(id: ID!): Boolean!
}

input AuthorInput {
    name: String!
}

type Author {
    id: ID!
    name: String!
    language: String!
    biography: String
}
