diff --git a/documentation/topics/resources/code-interfaces.md b/documentation/topics/resources/code-interfaces.md index 60aaaadd89..9b2790fb26 100644 --- a/documentation/topics/resources/code-interfaces.md +++ b/documentation/topics/resources/code-interfaces.md @@ -81,7 +81,7 @@ This is similar to using `Repo.get/2` and `Repo.preload/2` directly outside of c ```elixir # In your domain resource DashboardGroup do - define :get_by_id, action: :read, get_by: [:id] + define :get_dashboard_group_by_id, action: :read, get_by: [:id] end # In your LiveView or Controller diff --git a/usage-rules.md b/usage-rules.md index 331cc222ff..11c99ecca7 100644 --- a/usage-rules.md +++ b/usage-rules.md @@ -70,7 +70,7 @@ group = MyApp.Resource |> Ash.get!(id) |> Ash.load!(rel: [:nested]) # GOOD - use code interface with get_by resource DashboardGroup do - define :get_by_id, action: :read, get_by: [:id] + define :get_dashboard_group_by_id, action: :read, get_by: [:id] end # Then call: