How can I count Mongoose Schema documents with a filter?
I am trying to count the entries in a database (w/ a Schema) while only filtering for a particular user (filter), but it keeps not working.
Can .findOne() search for two options & have numerical checks (>X)?
I am trying to search if a type
Number object in a document is equal to or above a specific number when validating a discord command. I’m using MongoDB and Mongoose as data storage.
How can I use the .find() output for schema validation?
I am trying to make a Discord bot with a command called /moderator
with a sub-command /moderator add
which adds a user’s ID to a moderator database (MongoDB/Mongoose) which is then checked anytime someone wants to run a moderator command.