Hi guys, Is it possible to have multiple schemas ...
# mongodb
s
Hi guys, Is it possible to have multiple schemas for a collection via prisma? Like something done via mongoose below: var schemaOne = new Schema({ "stype": { type: String, default: "one" }, "myid": String, "f1": String }); var schemaTwo = new Schema({ "stype": { type: String, default: "two" }, "myid": String, "f2": String }); var One = mongoose.schema('one', schemaOne, 'coll'); var Two = mongoose.schema('two', schemaTwo, 'coll');
1
a