Skip to content

Commit ab1b9f9

Browse files
committed
Document setting the idField and debug mode.
1 parent 6422c10 commit ab1b9f9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/common-patterns.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
title: Common Patterns
33
---
44

5+
## Set the `idField`
6+
7+
If you have a "WTF this isn't working" moment while setting up a new service, make sure you've set the `idField` property on your service. In `[email protected]`, the `id` is the default `idField`. You have to manually set `_id`. Starting in `[email protected]`, both the `id` and `_id` fields are supported without any configuration, so you only set the `idField` when your service uses something else.
8+
9+
## Enable debugging
10+
11+
You can set `debug: true` in the options to enable some logging to assist with debugging.
12+
513
## Use the `<feathers-vuex-find>` and `<feathers-vuex-get>` components
614

715
Using the new `<feathers-vuex-find>` and `<feathers-vuex-get>` components provides concise access to the best features of `feathers-vuex`, including live queries, reactive lists, custom pagination tracking per component, and fall-through cacheing of local data in the Vuex store. Check out the [Renderless Data Components](./components.md) docs for more details.

0 commit comments

Comments
 (0)