Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev committed Jun 13, 2024
1 parent 8afe7c8 commit 2cd510e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/3.0/resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,14 @@ That will help you avoid those nasty `n+1` performance issues.
```ruby
class Avo::Resources::Post < Avo::BaseResource
self.includes = [:user, :tags]

# or a very nested scenario
self.includes = [files_attachments: :blob, users: [:comments, :teams, post: [comments: :user]]]
end
```

We know, the array notation looks weird, but it works.

:::

:::option `default_view_type`
Expand Down

0 comments on commit 2cd510e

Please sign in to comment.