Neoanthropic Preternatural Murmurings

    @creately/mungo
    TypeScript icon, indicating that this package has built-in type declarations

    1.3.0 • Public • Published

    mungo

    Javascript implementation of MongoDB update operators.

    Getting Started

    Install the package

    npm install @creately/mungo
    

    Import the modify function from mungo and call it with the document.

    import { modify } from 'mungo'
     
    const doc = { id: 'id', x: 10 }
    modify(doc, { $set: { x: 20 } })
     
    console.log(doc)
    // { id: 'id', x: 20 }

    Supported Operators

    Field Update Operators

    • $set

    Array Update Operators

    • $push
    • $pull

    Bitwise Update Operators

    Install

    npm i @creately/mungo

    DownloadsWeekly Downloads

    6

    Version

    1.3.0

    License

    MIT

    Unpacked Size

    43.8 kB

    Total Files

    40

    Last publish

    Collaborators

    • damithcgx
    • linatrefai
    • sajeeva
    • rumaizcinergix
    • thisunravisara
    • nuwacgx
    • jziegelaar
    • chandika
    • vinochs
    • shashik_thiwanka
    • sasindu