const testsSchema = mongoose.Schema({
test: {
id: Number,
name: String,
usings: [ Number ]
}
}, { versionKey: false })
const tests = new test({
test: {
id: count + 1,
name: name,
usings: []
}
})
return tests.save()