Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Add option to use returnDocument #41

Closed
wants to merge 1 commit into from

Commits on Jun 29, 2021

  1. Add option to use returnDocument

    The `mongodb` Node.js driver deprecated use of `returnOriginal` in
    favour of `returnDocument` in [v3.6][1].
    
    This non-breaking change allows consumers to opt in to using the newer
    `returnDocument` by setting an option on construction
    
    ```js
    var queue = mongoDbQueue(db, 'queue', { returnDocument : true })
    ```
    
    [1]: mongodb/node-mongodb-native#2808
    alecgibson committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    44fb12c View commit details
    Browse the repository at this point in the history