Skip to content

ali1ariel/alashandria

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alASHandria

A library that burns all the books all the time. (In memory with Mnesia, if you did not get it...)

Elixir Ash Framework GraphQL

A simple library management system built with Elixir and Ash Framework. Features automatic GraphQL API generation from declarative resources.

Quick Start

Requirements: Elixir 1.17+

git clone https://github.com/yourusername/alashandria.git
cd alashandria
mix deps.get
mix run --no-halt

GraphQL playground: http://localhost:4000/graphiql

Example Usage

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.

About

A simple library manager built with Ash Framework and Absinthe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages