I'm trying to set up a Node.js server using Express framework. I see a function but it is being used as an Object. I don't understand what this mean. Please explain for me.
const Users = mongoose.model('Users', userSchema);
console.log(typeof Users); // "function"
But I can use it as an Object as below:
Users.find({}); // What this mean?????