You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`serverAlias` - **Default:**`api` - Models are keyed by `serverAlias`. Access the `$FeathersVuex` Plugin and its models in your components by `this.$FeathersVuex.api.${Model}`
298
301
-`keepCopiesInStore` - **Default:**`false` - Set to true to store cloned copies in the store instead of on the Model. <Badgetext="deprecated"type="warning" />
299
-
-`paramsForServer {Array}` - **Default:**`[]` - Custom query operators that are ignored in the find getter, but will pass through to the server.
300
-
-`whitelist {Array}` - **Default:**`[]` - Custom query operators that will be allowed in the find getter.
301
302
302
303
-`idField {String}` - **Default:**`'id'` - The field in each record that will contain the id
303
304
-`tempIdField {Boolean}` - **Default:**`'__id'` - The field in each temporary record that contains the id
305
+
-`nameStyle {'short'|'path'}` - **Default:**`'short'` - Use the full service path as the Vuex module name, instead of just the last section.
304
306
-`debug {Boolean}` - **Default:**`false` - Enable some logging for debugging
305
307
-`addOnUpsert {Boolean}` - **Default:**`false` - If `true` add new records pushed by 'updated/patched' socketio events into store, instead of discarding them.
306
308
-`autoRemove {Boolean}` - **Default:**`false` - If `true` automatically remove records missing from responses (only use with feathers-rest)
307
309
-`preferUpdate {Boolean}` - **Default:**`false` - If `true`, calling `model.save()` will do an `update` instead of a `patch`.
308
310
-`replaceItems {Boolean}` - **Default:**`false` - If `true`, updates & patches replace the record in the store. Default is false, which merges in changes.
309
311
-`skipRequestIfExists {Boolean}` - **Default:**`false` - For get action, if `true` the record already exists in store, skip the remote request.
310
-
-`nameStyle {'short'|'path'}` - **Default:**`'short'` - Use the full service path as the Vuex module name, instead of just the last section.
312
+
-`paramsForServer {Array}` - **Default:**`[]` - Custom query operators that are ignored in the find getter, but will pass through to the server.
313
+
-`whitelist {Array}` - **Default:**`[]` - Custom query operators that will be allowed in the find getter.
311
314
-`enableEvents {Boolean}` - **Default:**`true` - If `false` socket event listeners will be turned off. See the services
312
315
-`handleEvents {Object}`: For this to work `enableEvents` must be `true`
313
316
-`created {Function}` - **Default:**`(item, { model, models }) => options.enableEvents` - handle `created` events, return true to add to the store
@@ -64,19 +68,22 @@ The following options can also be configured in [Global Configuration](getting-s
64
68
65
69
-`idField {String}` - **Default:**`globalConfig: 'id'` - The field in each record that will contain the id
66
70
-`tempIdField {Boolean}` - **Default:**`globalConfig: '__id'` - The field in each temporary record that contains the id
71
+
-`nameStyle {'short'|'path'}` - **Default:**`globalConfig: 'short'` - Use the full service path as the Vuex module name, instead of just the last section.
67
72
-`debug {Boolean}` - **Default:**`globalConfig: false` - Enable some logging for debugging
68
73
-`addOnUpsert {Boolean}` - **Default:**`globalConfig: false` - If `true` add new records pushed by 'updated/patched' socketio events into store, instead of discarding them.
69
74
-`autoRemove {Boolean}` - **Default:**`globalConfig: false` - If `true` automatically remove records missing from responses (only use with feathers-rest)
70
75
-`preferUpdate {Boolean}` - **Default:**`globalConfig: false` - If `true`, calling `model.save()` will do an `update` instead of a `patch`.
71
76
-`replaceItems {Boolean}` - **Default:**`globalConfig: false` - If `true`, updates & patches replace the record in the store. Default is false, which merges in changes.
72
77
-`skipRequestIfExists {Boolean}` - **Default:**`globalConfig: false` - For get action, if `true` the record already exists in store, skip the remote request.
73
-
-`nameStyle {'short'|'path'}` - **Default:**`globalConfig: 'short'` - Use the full service path as the Vuex module name, instead of just the last section.
78
+
-`paramsForServer {Array}` - Custom query operators that are ignored in the find getter, but will pass through to the server.
79
+
-`whitelist {Array}` - Custom query operators that will be allowed in the find getter.
74
80
-`enableEvents {Boolean}` - **Default:**`globalConfig: true` - If `false` socket event listeners will be turned off
75
81
-`handleEvents {Object}`: For this to work `enableEvents` must be `true`
76
82
-`created {Function}` - **Default:**`(item, { model, models }) => options.enableEvents` - handle `created` events, return true to add to the store
77
83
-`patched {Function}` - **Default:**`(item, { model, models }) => options.enableEvents` - handle `created` events, return true to update in the store
78
84
-`updated {Function}` - **Default:**`(item, { model, models }) => options.enableEvents` - handle `created` events, return true to update in the store
79
85
-`removed {Function}` - **Default:**`(item, { model, models }) => options.enableEvents` - handle `removed` events, return true to remove from the store
86
+
-
80
87
81
88
The following options can only configured individually per service plugin
0 commit comments