Skip to content

Commit 6dfab42

Browse files
committed
Update README
1 parent 1977cb7 commit 6dfab42

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ The following table lists all operations you can use and what they to:
7373
CRUD | Vuex Only | Persist to GraphQL API
7474
--| -- | --
7575
**R**EAD | getters['find'] & getters['findAll'] | dispatch('fetch')
76-
**C**REATE | dispatch('create) | dispatch('persist')
76+
**C**REATE | dispatch('create') | dispatch('persist')
7777
**U**PDATE | dispatch('save') | dispatch('push')
7878
**D**ELETE | dispatch('delete') | dispatch('destroy')
7979

8080

8181
## Eager Loading
8282

83-
All `belongsTo` related entities are eager loaded when fetch is called. All other related entities have to be added
84-
to a static field in the model called `eagerLoad` to have them eagerly loaded with fetch.
83+
All `belongsTo` and `hasOne` related entities are eager loaded when fetch is called. All other related entities have to
84+
be added to a static field in the model called `eagerLoad` to have them eagerly loaded with fetch.
8585

8686
Example:
8787

@@ -101,6 +101,9 @@ class User extends Model {
101101
}
102102
```
103103

104+
105+
## Caching
106+
104107
Apollo-Client caches same queries. To bypass caching set the second param of the `fetch` action to `true`:
105108

106109
```

0 commit comments

Comments
 (0)