@3kles/3kles-mongodbeventutil
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

3KLES-MONGODBUTIL

This package is based on:

This toolbox to easily create mongodbservice with selection and event.

Services

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

Routes

MongoDBSelectionRouter is a service based on MongoDBRouter to add selection and event Add routes for:

  • getSelected
  • selectAll
  • select
  • clearSelection
  • deleteSelection

Utils

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.135latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.135
2.0.04
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.11
1.0.00

Package Sidebar

Install

npm i @3kles/3kles-mongodbeventutil

Weekly Downloads

26

Version

2.0.1

License

ISC

Unpacked Size

2.28 MB

Total Files

11

Last publish

Collaborators

  • freazgo
  • jchaut
  • cdasilvacosta
  • qcampos