meteor / meteor/publish-counts

Collection cursor has no field limits and will fetch entire documents

Open
#97 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
200
Forks
47
PR merge metrics
No merged PRs in 30d

Description

Meteor 2.7 version has replaced have "field" with "projection" key in _cursorDescription.options, which cause the error
```publish-counts: Collection cursor has no field limits and will fetch entire documents. consider specifying only required fields```
if ```countFromFieldLength``` method is used to get the count from the document field,

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing countFromFieldLength and the _cursorDescription.options handling that reads the cursor field limits. Compare Meteor 2.7's projection key with the current field lookup and verify that required-field limiting still prevents the entire document from being fetched while avoiding the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.