Closed LinusU closed 3 years ago
Before this the following valid call to find:
find
.find( { foo: 'bar' }, { sort: { orderPriority: -1, name: 1 } } )
would be wrongly interpreted as:
{ query: { foo: 'bar' }, fields: { sort: { orderPriority: -1, name: 1 } }, // ... }
This patch fixes that by only setting fields when it's explicitly passed in the given signature.
fields
The check actually did pass on the last one, but Travis failed to report it. I'll force push the same commit to restart Travis...
Before this the following valid call to
find
:would be wrongly interpreted as:
This patch fixes that by only setting
fields
when it's explicitly passed in the given signature.