Skip to content

Commit 991f268

Browse files
Add examples for create-collection usage
1 parent f9f1310 commit 991f268

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
new createCollection(`rho:chroma:collection:new`), stdout(`rho:io:stdout`), retCh in {
2+
createCollection!("foo", true, {}, *retCh) |
3+
for(@res <- retCh) {
4+
stdout!("Creation succeeded!")
5+
}
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
new createCollection(`rho:chroma:collection:new`), stdout(`rho:io:stdout`), retCh in {
2+
createCollection!("foo", true, {"meta1" : 1, "two" : "42", "three" : 42, "meta2": "bar"}, *retCh) |
3+
for(@res <- retCh) {
4+
stdout!("Creation succeeded!")
5+
}
6+
}

0 commit comments

Comments
 (0)