Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

be able to set readConcern on mongoose.Schema #14511

Closed
2 tasks done
sibelius opened this issue Apr 9, 2024 · 0 comments
Closed
2 tasks done

be able to set readConcern on mongoose.Schema #14511

sibelius opened this issue Apr 9, 2024 · 0 comments
Labels
enhancement This issue is a user-facing general improvement that doesn't fix a bug or add a new feature new feature This change adds new functionality, like a new method or class
Milestone

Comments

@sibelius
Copy link
Contributor

sibelius commented Apr 9, 2024

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,
  },
);
@sibelius sibelius added enhancement This issue is a user-facing general improvement that doesn't fix a bug or add a new feature new feature This change adds new functionality, like a new method or class labels Apr 9, 2024
@vkarpov15 vkarpov15 added this to the 8.4 milestone Apr 15, 2024
vkarpov15 added a commit that referenced this issue May 8, 2024
vkarpov15 added a commit that referenced this issue May 9, 2024
feat(schema): add schema-level readConcern option to apply default readConcern for all queries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue is a user-facing general improvement that doesn't fix a bug or add a new feature new feature This change adds new functionality, like a new method or class
Projects
None yet
Development

No branches or pull requests

2 participants