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
Copy file name to clipboardExpand all lines: docs/guides.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,8 +64,6 @@ module.exports = {
64
64
65
65
We often want to combine rows from two or more tables based on a relationship between them. The `fastJoin` hook will select records that have matching values in both tables. It can batch service calls and cache records, thereby needing roughly an order of magnitude fewer database calls than the `populate` hook, i.e. _2_ calls instead of _20_. It uses a [GraphQL](http://graphql.org/)-like imperative API.
66
66
67
-
`fastJoin` is not restricted to using data from Feathers services. Resources for which there are no Feathers adapters can [also be used](/v1/batch-loader/common-patterns.html#Using-non-Feathers-services).
68
-
69
67
### Usage
70
68
71
69
```js
@@ -260,7 +258,7 @@ const postResolvers = {
260
258
};
261
259
```
262
260
263
-
A resolver function can make any sort of modification to the passed record; it is not limited to making service calls. Resolvers can use resources for which there is [no Feathers adapter](/v1/batch-loader/common-patterns.html#Using-non-Feathers-services).
261
+
A resolver function can make any sort of modification to the passed record; it is not limited to making service calls.
264
262
265
263
Here, the starerCount resolver adds the field `starerCount` containing a count of the `starIds`.
266
264
@@ -421,7 +419,7 @@ We have been looking till now into the structure and flexibility of `fastJoin`.
421
419
422
420
We will use batch-loaders to dramatically reduce the number of database calls needed. Its not uncommon for operations that would have required _20_ database calls to make only _2_ using batch-loaders.
423
421
424
-
You need to understand batch-loaders before we proceed, so [read about them now.](../batch-loader/guide.html)
422
+
You need to understand batch-loaders before we proceed, so [read about them now.](https://github.com/feathersjs-ecosystem/batch-loader)
425
423
426
424
### Using a Simple Batch-Loader
427
425
@@ -524,7 +522,7 @@ const postResolvers = {
524
522
}
525
523
```
526
524
527
-
> The [batch-loader guide](../batch-loader) explains how to create batch-loaders.
525
+
> The [batch-loader guide](https://github.com/feathersjs-ecosystem/batch-loader) explains how to create batch-loaders.
Copy file name to clipboardExpand all lines: docs/hooks.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -891,7 +891,7 @@ The `cache` hook also makes `get` service calls more efficient.
891
891
892
892
Relationships such as `1:1`, `1:m`, `n:1`, and `n:m` relationships can be handled.
893
893
894
-
`fastJoin` uses a GraphQL-like imperative API, and it is not restricted to using data from Feathers services. Resources for which there are no Feathers adapters can [be used.](../batch-loader/common-patterns.html#Using-non-Feathers-services)
894
+
`fastJoin` uses a GraphQL-like imperative API, and it is not restricted to using data from Feathers services. Resources for which there are no Feathers adapters can [be used.](https://github.com/feathersjs-ecosystem/batch-loader)
895
895
896
896
The companion `@feathers-plus/cache` implements a least recently-used cache which discards the least recently used items first. When used in conjunction with the `cache` hook, it can be used to implement persistent caches for BatchLoaders. BatchLoaders configured this way would retain their cache between requests, eliminating the need to _prime_ the cache at the start of each request.
0 commit comments