mirror of
https://github.com/vale981/grapher
synced 2025-03-09 12:26:40 -04:00
10 lines
212 B
JavaScript
10 lines
212 B
JavaScript
![]() |
import { Items, SubItems } from './collection';
|
||
|
|
||
|
Items.remove({});
|
||
|
SubItems.remove({});
|
||
|
|
||
|
const itemsId = Items.insert({text: 'hello'});
|
||
|
|
||
|
Items.getLink(itemsId, 'subitems').add({
|
||
|
text: 'hello from subitem'
|
||
|
});
|