Skip to content

Commit fcf6963

Browse files
committed
docs add links to feathers-graph-populate
1 parent 4816834 commit fcf6963

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/common-patterns.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ class Post extends BaseModel {
278278

279279
## Relationships for Populated Data
280280

281+
If you're looking for a great solution for populating data to work with Feathers-Vuex, check out [feathers-graph-populate](https://feathers-graph-populate.netlify.app/).
282+
281283
A common task with almost any API is properly handling relationships between endpoints. Imagine an API where you have `/todos` and `/users` services. Each todo record can belong to a single user, so a todo has a `userId`.
282284

283285
```js

docs/model-classes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ The function will be called during model instance construction with the followin
155155

156156
For an example of how you might use `setupInstance`, suppose we have two services: Users and Posts. Assume that the API request to get a user includes their `posts`, already populated on the data. The `instanceDefaults` allows us to convert the array of `posts` into an array of `Post` instances.
157157

158+
> If you're looking for a great solution for populating data to work with Feathers-Vuex, check out [feathers-graph-populate](https://feathers-graph-populate.netlify.app/).
159+
160+
158161
```js
159162
// The setupInstance method on an imaginary User model.
160163
setupInstance(data, { store, models }) {

0 commit comments

Comments
 (0)