Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(NODE-6472): run findOne without cursor#4580

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
durran wants to merge5 commits intomain
base:main
Choose a base branch
Loading
fromNODE-6472
Draft

Conversation

durran
Copy link
Member

@durrandurran commentedJul 9, 2025
edited
Loading

Description

ChangesfindOne to set options that will not require a cursor or a killCursors command. Updatesfind to not leave cursors open on the server when batch size and limit are equal.

What is changing?

  • findOne no longer creates aFindCursor object, but instead callsexecuteOperation with a newFindOneOperation.
  • The find one operation now deprecates options for it specifically which are irrelevant.
  • The find operation now setsbatchSize tobatchSize + 1 when the limit it equal to it.
  • Syncs CRUD spec tests.
Is there new documentation needed for these changes?

What is the motivation for this change?

Release Highlight

Fill in title or leave empty for no highlight

Double check the following

  • Rannpm run check:lint script
  • Self-review completed using thesteps outlined here
  • PR title follows thecorrect format:type(NODE-xxxx)[!]: description
    • Example:feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@durrandurranforce-pushed theNODE-6472 branch 3 times, most recently from2f2ee7c to62c9811CompareJuly 9, 2025 19:09
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@durran

[8]ページ先頭

©2009-2025 Movatter.jp