Latest #ash-calculations Threads 
If I’m using AshEvents as resource called MyApp.Events.EventLog. It has a data field that is a map with a property called source_name.
F...
New
Hello everyone,
I’m running into an issue with the load callback in a calculation module, specifically regarding domain-level authorizat...
New
I’ve been struggling to come up with an Ash aggregation or calculation that works on a Time attribute. The attribute in question:
at...
New
I want to calculate the sub_total for a sale (sum of line_items.line_total) without querying the data layer. how can I achieve that?
Her...
New
Hi, I have the following calculation in one of my resources:
calculations do
calculate :llm_model,
:map,
...
New
Hello,
I hope someone can clarify the semantics of calculation return value. The following calculation of a last response from an LLM th...
New
I have a resource with an attribute that is an array of strings. Calculations on these arrays seem inconsistent:
attribute :tags, {:ar...
New
Orders have many OrderItems have many OrderItemModifiers
OrderItem and OrderItemModifier both have attributes of quantity and price
I w...
New
Some context to avoid the XY Problem: I’m trying to expose some state which lives in an external API as a resource field.
Let’s say I ha...
New
I have the following calculation:
calculations do
calculate :trigram, :list, expr(fragment("show_trgm(?)", first_grantee_full_name))...
New
This Week's Trending
This Month's Trending
This Year's Trending
I want to calculate the sub_total for a sale (sum of line_items.line_total) without querying the data layer. how can I achieve that?
Her...
New
I’ve been struggling to come up with an Ash aggregation or calculation that works on a Time attribute. The attribute in question:
at...
New
Hello everyone,
I’m running into an issue with the load callback in a calculation module, specifically regarding domain-level authorizat...
New
If I’m using AshEvents as resource called MyApp.Events.EventLog. It has a data field that is a map with a property called source_name.
F...
New
Last Three Year's Trending
I am trying to filter records by a calculated interval.
My resource has these two attributes:
attribute :retry_at, :utc_datetime, a...
New
I have a resource that has an attribute that is an array of embedded resources.
I have module calculation that maps the embedded resourc...
New
In my resource, I have the following many_to_many relationship:
many_to_many :favorited_by_users, User do
through FavoriteProp...
New
Orders have many OrderItems have many OrderItemModifiers
OrderItem and OrderItemModifier both have attributes of quantity and price
I w...
New
Some context to avoid the XY Problem: I’m trying to expose some state which lives in an external API as a resource field.
Let’s say I ha...
New
Given this code:
relationships do
belongs_to :sender, MyApp.Accounts.User,
source_attribute: :sender_id,
destination_att...
New
Currently, when writing a calculation, the third argument is the expression.
For example:
calculate :full_name, :string, expr(first_nam...
New
Hello,
I hope someone can clarify the semantics of calculation return value. The following calculation of a last response from an LLM th...
New
Is it possible to run a calculation on a calculation in another resource?
# resource user
attributes do
attribute :type, :atom do
...
New
I have the following calculation:
calculations do
calculate :trigram, :list, expr(fragment("show_trgm(?)", first_grantee_full_name))...
New
I have a resource with an attribute that is an array of strings. Calculations on these arrays seem inconsistent:
attribute :tags, {:ar...
New
Hi, I have the following calculation in one of my resources:
calculations do
calculate :llm_model,
:map,
...
New
Trending Over Three Years
Latest on Elixir Forum
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Manning Publications
45% off any item
ElixirCasts
10% off for life
The Pragmatic Studio
20% off any course
AppSignal
10% off for 12 months
Honeybadger
10% off for 12 months
Simply use coupon code "devtalk.com" or "elixirforum" at checkout!
Filter by Type:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #elixirconf
- #discussion
- #javascript
- #podcasts
- #code-sync
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #api
- #processes
- #forms
- #metaprogramming
- #security
- #performance
- #hex







