Skip to content

Commit 94f0847

Browse files
committed
Updating language.
1 parent 5a7d051 commit 94f0847

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ class Post extends Post
389389

390390
The last argument of `GeneratedField` is a function which receives an object populated with values based on the list of
391391
fields you are interested in. In the example above, this is one field named `title` from the `Posts` collection. The `_id`
392-
field is always available in `fields`. Generator function receives or just `_id` (when document containing fields is being
393-
removed) or all fields requested. Generator function should return two values, a selector (often just the ID of a document)
392+
field is always available in `fields`. Generator function receives just `_id` when document containing fields is being
393+
removed. Otherwise it receives all fields requested. Generator function should return two values, a selector (often just the ID of a document)
394394
and a new value. If the value is undefined, the auto-generated field is removed. If the selector is undefined, nothing is done.
395395

396396
You can define auto-generated fields across documents. Furthermore, you can combine reactivity. Maybe you want to also

0 commit comments

Comments
 (0)