File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -389,8 +389,8 @@ class Post extends Post
389389
390390The last argument of ` GeneratedField ` is a function which receives an object populated with values based on the list of
391391fields 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)
394394and a new value. If the value is undefined, the auto-generated field is removed. If the selector is undefined, nothing is done.
395395
396396You can define auto-generated fields across documents. Furthermore, you can combine reactivity. Maybe you want to also
You can’t perform that action at this time.
0 commit comments