Is it necessary to adhere to a model with a schema before running any query? And how can one query a database collection without the schema, when referred by the collection name?
This scenario is demonstrated in an example query from the Mongoose documentation.
const Person = mongoose.model('Person', yourSchema);
// find each person with a last name matching 'Ghost', selecting the `name` and `occupation` fields
const person = await Person.findOne({ 'name.last': 'Ghost' }, 'name occupation');