Skip to content

feat: add cursor modifications support for find() - #3

Merged
d-bytebase merged 1 commit into
mainfrom
vk/793f-mvp-of-gomongo-s
Jan 14, 2026
Merged

feat: add cursor modifications support for find()#3
d-bytebase merged 1 commit into
mainfrom
vk/793f-mvp-of-gomongo-s

Conversation

@h3n4l

@h3n4l h3n4l commented Jan 14, 2026

Copy link
Copy Markdown
Member

Summary

  • Add support for .sort(), .limit(), .skip(), and .projection() cursor modifiers on find()
  • Accept any method chain order (accumulator pattern) - e.g., .limit().sort() works the same as .sort().limit()
  • Add 11 integration tests covering individual modifiers, combinations, and order independence

Test plan

  • go test -v ./... passes
  • golangci-lint run passes
  • Test cases cover: sort asc/desc, limit, skip, projection include/exclude, combinations, and method chain order

🤖 Generated with Claude Code

Support .sort(), .limit(), .skip(), and .projection() cursor modifiers
with any method chain order (accumulator pattern).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@d-bytebase
d-bytebase merged commit 11f935e into main Jan 14, 2026
2 checks passed
@d-bytebase
d-bytebase deleted the vk/793f-mvp-of-gomongo-s branch January 14, 2026 11:26
@d-bytebase
d-bytebase requested a review from rebelice January 14, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants