mirror of
https://github.com/vale981/grapher
synced 2025-03-09 04:16:39 -04:00
10 lines
No EOL
212 B
JavaScript
10 lines
No EOL
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'
|
|
}); |