Use both grouped and ungrouped collection to add test set
This commit is contained in:
parent
e051184c12
commit
f96e053417
1 changed files with 5 additions and 1 deletions
|
@ -13,7 +13,11 @@ function setup() {
|
|||
var org = new Organisation();
|
||||
org.name = "Organisation " + i;
|
||||
org.country = "CH" + i.format("0000");
|
||||
root.organisations.add(org);
|
||||
// add to different collections
|
||||
if (i % 2 == 0)
|
||||
root.organisations.add(org);
|
||||
else
|
||||
root.organisationsByCountry.add(org);
|
||||
}
|
||||
res.commit();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue