File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -73,15 +73,15 @@ The following table lists all operations you can use and what they to:
73
73
CRUD | Vuex Only | Persist to GraphQL API
74
74
--| -- | --
75
75
** R** EAD | getters[ 'find'] & getters[ 'findAll'] | dispatch('fetch')
76
- ** C** REATE | dispatch('create) | dispatch('persist')
76
+ ** C** REATE | dispatch('create' ) | dispatch('persist')
77
77
** U** PDATE | dispatch('save') | dispatch('push')
78
78
** D** ELETE | dispatch('delete') | dispatch('destroy')
79
79
80
80
81
81
## Eager Loading
82
82
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.
85
85
86
86
Example:
87
87
@@ -101,6 +101,9 @@ class User extends Model {
101
101
}
102
102
```
103
103
104
+
105
+ ## Caching
106
+
104
107
Apollo-Client caches same queries. To bypass caching set the second param of the ` fetch ` action to ` true ` :
105
108
106
109
```
You can’t perform that action at this time.
0 commit comments