-
## `assoc`
```elixir
def list_habits(%Account{} = account) do
account
|> assoc(:habits)
|> Repo.all()
end
```
- Requires `import Ecto, only: [assoc: 2]`
- 👎 Pattern-matching (option…
-
How can I show the aggregate root in the context map? e.g. this picture from Domain Driven Design Distilled
![Context Map with Aggregates](https://user-images.githubusercontent.com/5517/135974168-e02…
-
In the environment where I develop applications, domain events different bounded contexts emit are identified by name URIs, e.g. `tld.company:invoicing:invoice-created:18cdd1f0-f34a-0136-23b0-54e1fd13…
-
After divided a CML file into several ones by type and imported them in the primary context map file, the generic generator doesn't find any object declared in an imported file.
To reproduce the is…
-
## Description
**Is your feature request related to a problem? Please describe.**
Currently, we can annotate bounded context but according to [DDD Distilled](https://sd.blackball.lv/library/Domain…
-
### Current text
- ./Property Sets/Property Sets for Contexts/README.md:The concept template _Property Sets for Contexts_ describes how an context can be related to a single or multiple property se…
-
When a phone number is added to a data collector the policy kind of re-reports the case report where the data collector is unknown but the origin matches the added phone number. This should not be as …
-
**Description:**
The Domain-Oriented Microservice Architecture (DOMA) design pattern focuses on organizing microservices around business domains to improve scalability, flexibility, and maintainabilit…
-
Bounded containers have a Capacity discriminant (and sometimes others). Some Ada operations require discriminants to match, and that makes using bounded containers more difficult than unbounded contai…
-
This is a bit confusing: The `Quantity` variant is named `One`, but `pay_for_offer` fails to send the invoice request with an `UnexpectedQuantity` error if the `quantity` argument is `Some(1)`.
See…
tnull updated
2 months ago