Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
- [Using Entities](#using-entities)
- [Entity Organization](#entity-organization)
- [Caveats](#caveats)
- [Preloading Associations](#preloading-associations)
- [Installation](#installation)
- [Testing with Entities](#testing-with-entities)
- [Project Resources](#project-resources)
Expand Down Expand Up @@ -674,6 +675,10 @@ end

Also note that an `ArgumentError` is raised when unknown options are passed to either `expose` or `with_options`.

### Preloading Associations

Use [Grape::Entity::Preloader](https://github.com/OuYangJinTing/grape-entity-preloader) to preload associations and callbacks and avoid N+1 operations.

## Installation

Add this line to your application's Gemfile:
Expand Down