This folder contains examples to demonstrate the usage of the @kikiutils/mongoose
package.
- MongoDB server 6.x or higher
- Mongoose version 8.x
- Node.js version 18.12.1 or higher
To install the necessary dependencies, run the following command:
pnpm i
Alternatively, you can use yarn, npm, or bun to install the dependencies.
Refer to ./src/index.ts for example usage.
For extending the model with instance methods, statics, or virtuals, please refer to the Mongoose documentation.
-
Copy the
.env.example
file to.env
and update the MONGODB_URI value. -
To run the project in development mode:
pnpm run dev
Feel free to modify ./src/index.ts to test different functionalities.