fix(core): update
This commit is contained in:
@@ -24,9 +24,24 @@ export const generateTestData = async (mongoDescriptorArg: smartdata.IMongoDescr
|
||||
}
|
||||
}
|
||||
|
||||
@smartdata.Collection(db)
|
||||
class Truck extends smartdata.SmartDataDbDoc<Truck, Truck> {
|
||||
@smartdata.unI()
|
||||
id = `hello-${counter}`;
|
||||
|
||||
@smartdata.svDb()
|
||||
data = {
|
||||
'some' : {
|
||||
'complex': 'structure'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
while (counter < 100) {
|
||||
const house = new House();
|
||||
await house.save();
|
||||
const truck = new Truck();
|
||||
await truck.save();
|
||||
counter++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user