From 64fa0a7f2eb1379ebace7a7bebaa57616c1e5f1f Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Wed, 30 Sep 2020 09:08:16 -0400 Subject: [PATCH] docs: add guidance to use `ash_postgres` dep --- lib/data_layer.ex | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/data_layer.ex b/lib/data_layer.ex index 00baa013..323fc00a 100644 --- a/lib/data_layer.ex +++ b/lib/data_layer.ex @@ -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: