Giter Club home page Giter Club logo

mongoose-soft-delete's Introduction

HELLO THERE ! It's me, Nour KAROUI


Yet another girl in the pursuit of happiness and looking for her purpose in this world. In the meantime, I am enjoying some coding and learning about technologies.

  • I am currently part of Molecule AG, where we utilize Blockchain to help researchers fund their projects and secure their intellectual properties through IPNFTs.
  • I, with other talented individuals, implemented Webipie, a website builder that'll reshape the job hunting process.
  • I’m still in the process of learning everything and always will be !
  • I am interested and curious about the entrepreneurial world
  • Intrigued about and motivated to learn blockchain

📫 Reach out to me!

Linkedin Badge Mail Badge

Some of my work includes:

  • mongoose soft delete plugin
  • refactoring a monolithic application into a microservices architecture

🧰 Toolbox

Solidity Ethereum Foundry JavaScript Typescript React NextJs NodeJs Mongo Postgres GraphQL AWS Npm Git

My GitHub Stats

Nour's GitHub stats


Check my recent Articles on Medium!

Mongoose Soft Delete Angular App Initializer Angular & JS files Facebook Post Facebook Post

Check my recent NPM Packages!

mongoose-soft-delete's People

Contributors

bishkou avatar merveuygunerdol avatar mowafy001 avatar nour-karoui avatar willis0826 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mongoose-soft-delete's Issues

Cannot update a document with softDelete

I am trying to update a document, but it won't let me, now if I manage to remove the softdelete from the mongo schema it works for me, therefore I think there is a problem with the plugin. I give example:

Captura de pantalla 2024-04-10 a la(s) 1 58 03 p  m Captura de pantalla 2024-04-10 a la(s) 1 58 37 p  m

I hope you can help me.

How can I add this plugin to NestJs globally?

How can I add this plugin globally?
This is the old method that does not work anymore in newer versions of mongoose:

import { Connection } from 'mongoose';
import { softDeletePlugin } from 'soft-delete-plugin-mongoose';
...
@Module({
  imports: [
    MongooseModule.forRoot(MONGO_URI, {
      connectionFactory: (connection: Connection) => {
        connection.plugin(softDeletePlugin);
        // ^--------- Error: Property 'plugin' does not exist on type 'Connection'.
        return connection;
      },
    }),

Thanks

idDeleted not considered in populate match

Hello,
I have a document with a string ref to a second document.
The second document uses soft delete.

I would like to be able to populate the first document with a match condition to populate only soft deleted sub-documents.

let as: A[] = await this.aModel.find().populate({
path: 'bs',
match: { isDeleted: { $eq: true } },
model: B
})

This condition gets completely ignore and I only have non deleted A documents in response.
Is there a way to achieve this behaviour?

Thanks and best regards

Fix: insure mongoose-soft-delete is compatible with serverless-webpack

Description:

  • I'm using serverless-layers with yarn as a package manager on lerna monorepo, when i installed the package it got the webpack build throwing error: Error: npm ls -prod -json -depth=1 failed with code 1.
  • noticed that it works as expected with services using version "serverless-layers": "2.5.4", any new version of this package will through this error, For example services with "serverless-layers": "^2.6.1" was throwing this error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.