
timpritlove
Ash Framework: Mention that aggregates can also point to resources (p. 79)
The last section in chapter 3 about aggregates mentions “„Aggregates perform some kind of calculation on records in a relationship“. However, when unterstand this change right, it might no longer be restricted to relationships but can be pointed directly at resources too:
I think this should at least be mentioned as it was part of the v3.5.35 release.
Also as aggregates completely replace the before constructed calculations one wonders what calculations are then for when they can be easier done with aggregates. The book should make a comment about this.
First Post!

sevenseacat
That’s true, aggregates can now be used for things other than relationships! That feature was added super recently, and is still having the tyres kicked (so to speak), and it’s a bit too late to update the book with this new info
As for calculations, we do go into examples first on how they can be used for generally calculating things, like the years_ago
that an album was released. We use them more in later chapters for things like the track number of an album, and policy checking who can manage album data!
Popular Pragmatic Bookshelf topics







Modern Front-End Development for Rails - application does not start after run bin/setup (page xviii)

Modern front-end development for Rails, second edition - Struggling to get the first chapter to work


Other popular topics










Categories:
Sub Categories:
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /rails
- /js
- /python
- /security
- /go
- /swift
- /vim
- /clojure
- /emacs
- /haskell
- /java
- /onivim
- /typescript
- /svelte
- /crystal
- /kotlin
- /c-plus-plus
- /tailwind
- /gleam
- /react
- /ocaml
- /flutter
- /elm
- /vscode
- /ash
- /opensuse
- /html
- /centos
- /php
- /deepseek
- /zig
- /scala
- /textmate
- /lisp
- /sublime-text
- /nixos
- /debian
- /react-native
- /agda
- /kubuntu
- /arch-linux
- /django
- /revery
- /ubuntu
- /spring
- /manjaro
- /nodejs
- /diversity
- /lua
- /julia
- /c
- /slackware
- /neovim