Just a small sample project to integrate and play around with:
- Akka Typed
- akka-persistence-typed for Eventsourcing
- akka-http as HTTP-Server
- caliban
- ZIO
- chimney
- Type-safe data transformation
Increment / Decrement the counter:
mutation {
increment(n: 5) {
count
}
}
mutation {
decrement(n: 5) {
count
}
}
Querying the counter:
{
count {
count
lastUpdateTimestamp
description
}
}
Setting a description on the counter:
mutation {
setDescription(description: "I'm overwriting the description ignoring the current count") {
count
description
}
}
mutation {
setDescription(ifCountMatching: 10, description: "I'm only overwriting the description if the current count is 10") {
count
description
}
}