Skip to content

be able to set readConcern on mongoose.Schema #14511

@sibelius

Description

@sibelius

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the feature has not already been requested

🚀 Feature Proposal

Be able to define a readConcern similar to writeConcern at a mongoose.Schema level

Motivation

Simplify the use of readConcern per schema

Example

const Schema = new mongoose.Schema(
  {    
  },
  {
    timestamps: true,
    collection: 'LedgerEntry',
    writeConcern,
    readConcern,
  },
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThis issue is a user-facing general improvement that doesn't fix a bug or add a new featurenew featureThis change adds new functionality, like a new method or class

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions