Skip to content

Commit

Permalink
docs: add guidance to use ash_postgres dep
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Sep 30, 2020
1 parent 89e4761 commit 64fa0a7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/data_layer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ defmodule AshPostgres.DataLayer do
### Usage
To use this data layer, you need to define an `AshPostgres.Repo`. Ash adds some
First, ensure you've added ash_postgres to your `mix.exs` file.
```elixir
{:ash_postgres, "~> x.y.z"}
```
To use this data layer, you need to define an `Ecto.Repo`. AshPostgres adds some
functionality on top of ecto repos, so you'll want to use `AshPostgres.Repo`
Then, configure your resource like so:
Expand Down

0 comments on commit 64fa0a7

Please sign in to comment.