Authorization with Policy Wonk Tutorial Generating a stream using Stream.resource

Ecto Shortcuts - Common shortcut operations in ecto © (see license)

https://github.com/MishaConway/ecto_shortcuts

Lightweight Elixir extension to simplify common use cases in Ecto. It even has auto preloads!

MyApp.Users.insert name: "Bob"
MyApp.Users.get_by! [name: "Sally", age: 30],  preload: "*"
MyApp.Users.where [status: 3],  limit: 10, order_by: [desc: :inserted_at], preload: [:posts]
defmodule MyApp.Users do
  ...
  use EctoShortcuts, repo: MyApp.Repo,
                     model: MyApp.User,
                     default_preload: "*"
  ...
end