- 
    Type:Bug 
- 
    Resolution: Duplicate
- 
    Priority:Major - P3 
- 
    None
- 
    Affects Version/s: None
- 
    Component/s: mongoexport
- 
    None
- 
        v4.0
In all current versions of 4.0, mongoexport has the following error when attempting to export local.oplog.rs:
$ mongoexport --db local --collection "oplog.rs"
2019-05-15T16:39:32.942-0400	connected to: localhost
2019-05-15T16:39:32.942-0400	Failed: error processing query: ns=local.oplog.rsTree: $and
Sort: {}
Proj: {}
 planner returned error: bad hint
This command works as expected in 3.6 and below.