A library that burns all the books all the time. (In memory with Mnesia, if you did not get it...)
A simple library management system built with Elixir and Ash Framework. Features automatic GraphQL API generation from declarative resources.
Requirements: Elixir 1.17+
git clone https://github.com/yourusername/alashandria.git
cd alashandria
mix deps.get
mix run --no-haltGraphQL playground: http://localhost:4000/graphiql
Create an author and book:
mutation {
createAuthor(input: { name: "Machado de Assis", nationality: "BR" }) {
result {
id
name
}
}
}
mutation {
createBook(
input: {
name: "Dom Casmurro"
pages: 200
edition: 1
authorId: "author-id-here"
}
) {
result {
id
name
author {
name
}
}
}
}Search with filters:
query {
searchAuthors(name: "Machado", nationality: "BR") {
id
name
books {
name
pages
}
}
}Just it, welcome.
Oh, the rest of the doc 😲? Oh no... I think I burned it by accident.