Skip to content

Latest commit

 

History

History
72 lines (47 loc) · 1.57 KB

README.md

File metadata and controls

72 lines (47 loc) · 1.57 KB

MongoDB Service

A MongoDB database service for data persistence across the monorepo.

Overview

This service provides MongoDB database functionality and utilities for other services and applications in the monorepo.

Features

  • MongoDB connection management
  • Data persistence layer
  • Database utilities and helpers
  • Query optimization

Installation

npm install

Usage

import { MongoService } from './mongo-service';

const mongoService = new MongoService();
await mongoService.connect();

Configuration

Configure MongoDB connection settings in your environment:

MONGODB_URI=mongodb://localhost:27017
MONGODB_DATABASE=your_database

API Reference

Connection Management

  • connect() - Establish connection to MongoDB
  • disconnect() - Close MongoDB connection
  • isConnected() - Check connection status

Data Operations

  • create(collection, data) - Create new documents
  • find(collection, query) - Find documents
  • update(collection, query, data) - Update documents
  • delete(collection, query) - Delete documents

Related Services

Navigation

License

Copyright © 2022-2024 · LUXCIUM · (Benjamin Vincent Kasapoglu) · luxcium﹫neb401.com

† Scientia est lux principium✨ is a Trade Mark of Benjamin Vincent Kasapoglu