-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Query
The skip and limit constraints appear to not be respected by count and count_documents methods:
irb(main):002:0> a['foo'].find.skip(4).count => 10 irb(main):003:0> a['foo'].find.count => 10 irb(main):004:0> a['foo'].find.limit(5).count => 10 irb(main):005:0> a['foo'].find.limit(5).count_documents => 10 irb(main):006:0> a['foo'].find.skip(4).count_documents => 10
- duplicates
-
RUBY-2699 make readable methods recognize chained options
- Closed
- is related to
-
MONGOID-5005 .sum and similar aggregables should ignore sort if not limiting/skipping
- Closed
-
RUBY-2566 Prohibit skip and limit in estimated_document_count
- Closed