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/chapters/io.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -294,11 +294,11 @@ Initialized as `null` and serialized as `record.id`. Is not recursively cloned,
294
294
Changes in shared record are not detected.
295
295
296
296
`sourceCollection` may be:
297
-
- the variable pointing to the collection;
297
+
- the JS variable pointing to the collection singleton;
298
298
- the function returning the collection;
299
-
- the string with the dot-separated _relative object path_ to the collection. It is resolved dynamically relative to the record's `this`.
300
-
- `^` symbol in path means "take the owner" (`getOwner()` call).
301
-
- `~` symbol in path means "take the store" (`getStore()` call).
299
+
- the string with the dot-separated _relative object path_ to the collection. It is resolved dynamically relative to the record's `this`. Following shortcuts may be used in path:
300
+
- `owner.path` (or `^path`) works as `() =>this.getOwner().path`.
301
+
- `store.path` (or `~path`) works as `() =>this.getStore().path`.
<li>the JS variable pointing to the collection singleton;</li>
1295
1295
<li>the function returning the collection;</li>
1296
-
<li>the string with the dot-separated <em>relative object path</em> to the collection. It is resolved dynamically relative to the record's <code>this</code>.</li>
1297
-
<li><code>^</code> symbol in path means "take the owner" (<code>getOwner()</code> call).</li>
1298
-
<li><code>~</code> symbol in path means "take the store" (<code>getStore()</code> call).</li>
1296
+
<li>the string with the dot-separated <em>relative object path</em> to the collection. It is resolved dynamically relative to the record's <code>this</code>. Following shortcuts may be used in path:<ul>
1297
+
<li><code>owner.path</code> (or <code>^path</code>) works as <code>() => this.getOwner().path</code>.</li>
1298
+
<li><code>store.path</code> (or <code>~path</code>) works as <code>() => this.getStore().path</code>.</li>
0 commit comments