Slide 14
Slide 14 text
iex(1)> App.ToDoList.Task.create!(%{content: "Mow the lawn", position: 1})
[debug] QUERY OK db=2.4ms idle=129.0ms
begin []
↳ anonymous fn/3 in Ash.Changeset.with_hooks/3, at: lib/ash/changeset/
changeset.ex:2404
[debug] QUERY OK source="tasks" db=2.2ms
INSERT INTO "tasks" ("id","position","content") VALUES ($1,$2,$3) RETURNING
"position","content","id" ["09380ab1-a761-4281-bf24-41e11973fdd2", 1, "Mow the
lawn"]
↳ AshPostgres.DataLayer.bulk_create/3, at: lib/data_layer.ex:1582
[debug] QUERY OK db=1.1ms
commit []
↳ anonymous fn/3 in Ash.Changeset.with_hooks/3, at: lib/ash/changeset/
changeset.ex:2404
#App.ToDoList.Task<
__meta__: #Ecto.Schema.Metadata<:loaded, "tasks">,
id: "09380ab1-a761-4281-bf24-41e11973fdd2",
content: "Mow the lawn",
position: 1,
aggregates: %{},
calculations: %{},
...
>