mongoose use find example
Example 1: mongoose find or create
const findOrCreate = require('mongoose-find-or-create');
Example 2: mongoose find
const query = Customer.find().sort({ name: 1 }).limit(1);
query.getOptions(); // { sort: { name: 1 }, limit: 1 }