npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@incresco/mongodb-core

v1.0.36

Published

A high-performance MongoDB driver core for Nest.js, providing essential connectivity and functionality to optimize your database interactions.

Downloads

77

Readme

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.