This package is based on:
This toolbox to easily create mongodbservice with selection and event.
MongoDBSelectionService is a service based on MongoDBService to add selection and event
- getSelected: Get selected records
- selectAll: Select all records
- select: Select record by id
- clearSelection: Clear current selection
- deleteSelection: Delete selected records
MongoDBSelectionRouter is a service based on MongoDBRouter to add selection and event Add routes for:
- getSelected
- selectAll
- select
- clearSelection
- deleteSelection
GenericCRUDEvent is a class to simplify event transmission:
- emit (data:any, type:string): Method to send message (data) to exchange with routingKey (type)
- create: Used when creating record
- update: Used when updating record
- delete: Used when deleting record
CRUDSelectionUtil is a toolbox
- buildGenericRoute: Create a route from model and GenericCRUDEvent
- generate: Override CRUDUtil @3Kles/3kles-corebe to add select, selectAll, clearSelection