1.0.36 • Published 5 months ago

@incresco/mongodb-core v1.0.36

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

MongoDB-core Library

The MongoDB-core library is a powerful and flexible utility for interacting with MongoDB databases, designed to streamline and simplify common database operations. Whether you're building a small application or a complex system, this library provides essential functions to manage your data effectively.

Features

  • Create: Easily create and insert new documents into your MongoDB collections.
  • findById: Retrieve documents by their unique identifier.
  • findByIds: Fetch a batch of documents using a list of IDs.
  • findOne: Quickly find a single document based on specified criteria.
  • findAll: Retrieve all documents that match a given set of conditions.
  • update: Seamlessly update documents with new information or modifications.
  • softDelete: Perform soft delete operations, allowing you to retain data while marking it as deleted.
  • session: Manage transactions and operations within a session to maintain data integrity.

Installation

  1. Install the dependencies:
    yarn 

Usage

To integrate the MongoDB-core library into your project, follow these steps:

  1. Install the library using a package manager of your choice:
    npm install @incresco/mongodb-core
  2. import the BaseService in your project:
    import { BaseService } from '@incresco/mongodb-core';

Deployment

Before deploying and publishing your package, remember to increment the version number each time you make changes to the package. This ensures that users can identify and access the latest version of your library.

Follow these steps to deploy your changes and publish the package:

  1. Install dependencies and build the project:
    yarn
  2. Log in to your npm account:
    npm login
  3. Increment the version number in the package.json file based on your changes.
  4. Publish the package to npm:
    npm publish
    By increasing the version number and publishing the package, you're providing users with the most up-to-date features and improvements. Remember that semantic versioning (SemVer) principles can guide you in determining how to update the version number (e.g., major, minor, patch) based on the nature of the changes made.|

Contribution

Contributions to the MongoDB-core library are welcome! If you encounter any issues or have suggestions for improvements, please feel free to submit a pull request or open an issue on the GitHub repository.

1.0.36

5 months ago

1.0.35

5 months ago

1.0.34

6 months ago

1.0.33

6 months ago

1.0.32

8 months ago

1.0.31

8 months ago

1.0.30

8 months ago

1.0.29

8 months ago

1.0.28

8 months ago

1.0.27

8 months ago

1.0.26

8 months ago

1.0.25

8 months ago

1.0.24

8 months ago

1.0.22

8 months ago

1.0.21

8 months ago

1.0.20

8 months ago

1.0.19

8 months ago

1.0.18

8 months ago

1.0.17

8 months ago

1.0.16

8 months ago

1.0.15

9 months ago

1.0.14

9 months ago

1.0.13

9 months ago

1.0.12

9 months ago

1.0.11

9 months ago

1.0.10

9 months ago

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.4

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago