Skip to content

Commit

Permalink
Document byIds
Browse files Browse the repository at this point in the history
  • Loading branch information
LFDM committed Apr 23, 2017
1 parent 8584f0b commit 90efee4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/basics/Configuration.md
Expand Up @@ -24,6 +24,11 @@ There are a handful optional options to configure Ladda. In a minimal configurat

* **byId**: `true | false`. This is an optimization that tells Ladda that the first argument is an id. This allows Ladda to directly try to fetch the data from the cache, even if it was acquired by another call. This is useful if you previously called for example "getAllUsers" and now want to fetch one user directly from the cache. By default false.

* **byIds**: `true | false`. Another optimization which tells Ladda that
the first argument is a list of ids. Ladda will try to make an optimal
call (if any), looking up items from the cache and only calling for
items that are not yet present. Defaults to false.

## Ladda Configuration

* **idField**: Specify the default property that contains the ID. By default this is `"id"`.

0 comments on commit 90efee4

Please sign in to comment.