All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
- Custom Decorators: Introduced support for custom decorators:
- Route-Specific Decorators: Define custom decorators for specific routes to enhance flexibility and control.
- Generic Decorators: Apply generic decorators across all routes for consistent functionality.
- Filters Bug: Resolved issues with filters that caused unexpected behavior in certain scenarios.
- Console Logging: Logs are now properly printed to the console in addition to being stored in the database, improving debugging and monitoring capabilities.
- MongoDB URI Configuration: Resolved an issue where the MongoDB URI was not being recognized properly when configuring the
CrudifyLoggerModule
. The default URImongodb://localhost:27017
withlogs
as the database is now used correctly.- You can now configure the module using
CrudifyLoggerModule.forRoot()
with a custom URI and database name:CrudifyLoggerModule.forRoot({ uri: 'mongodb://xxx.xxx.xxx.xxx:yyyyy/', dbName: 'mydblogger', });
- You can now configure the module using
- Route Exclusion: Added the ability to exclude specific routes from CRUD generation via the
routes.exclude
option in the@Crudify
decorator. - Bulk Operations: Introduced new bulk routes for batch processing:
POST /your-model/bulk
: Create multiple records in a single request.PATCH /your-model/bulk
: Update multiple records based on specified filters or IDs.DELETE /your-model/bulk
: Delete multiple records at once using filters or a list of IDs.
- Core Functionality: Initial release of the library with automatic CRUD generation for Mongoose models in NestJS.
POST /your-model
: Create a new record.GET /your-model
: Retrieve all records.GET /your-model/:id
: Retrieve a record by ID.PATCH /your-model/:id
: Update specific fields of a record by ID.PUT /your-model/:id
: Replace an entire record by ID.DELETE /your-model/:id
: Delete a record by ID.
- Swagger Integration: Automatically generate Swagger documentation for all CRUD routes.
- Filter Support: Enable filtering of query results using operators like
$eq
,$gt
,$cont
, and more. - Customizable Services: Allow developers to extend and override CRUD service methods for custom logic.
- Built-in Error Handling: Integrated a logger to handle uncaught errors and log them for debugging.
Note: For any issues or feature requests, please open a ticket in the GitHub repository.