amaretto
Version, currently 0.2.11 version
- 0.2.1latestJan 14, 2026
github.com/amaretto-graphql/amaretto
The GraphQL toolkit
12 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
amaretto:
github: amaretto-graphql/amaretto
version: ~> 0.2.1Then run:
shards installshard.yml
- Crystal
1.5.0- License
- MIT
- Author
- Giorgi Kavrelishvili <giorgi.kavrelishvili@pm.me>
Dependencies
Runtime Dependencies
- graphql*github: graphql-crystal/graphql
Development Dependencies
- ameba*github: crystal-ameba/amebadev
README
# Amaretto
## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
amaretto:
github: amaretto-graphql/amaretto
```
2. Run `shards install`
## Usage
```crystal
require "amaretto"
module Untitled
class Schema < Amaretto::Schema
@[Amaretto::Annotations::Query]
def list_users : Array(String)
[] of String
end
@[Amaretto::Annotations::Mutation]
def create_user(string : String) : String
raise Exception.new("User #{string} already exists!")
end
end
end
query = Untitled::Schema::Query.new
mutation = Untitled::Schema::Mutation.new
schema = GraphQL::Schema.new(query, mutation)
puts schema.document.to_s
```
See the examples directory for detailed usage with Kemal or Grip
## Contributing
1. Fork it (<https://github.com/amaretto-graphql/amaretto/fork>)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Giorgi Kavrelishvili](https://github.com/grkek) - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.2.1- Tagged
- Jan 14, 2026
- Commit
d708359b79cf- Crystal
1.5.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/amaretto-graphql/amaretto
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 1