To get Schema of Node Mongoose database which defined in another model, we use the
For instance, we write
const SongSchema = require("mongoose").model("Song").schema;
to call the
model method to get the
And we use the
schema property to get its schema.