loopbackio/loopback-connector
View on GitHubFiltering with non existing / declared field is ignored / skipped
Open
#125 opened on May 31, 2018
bughelp wantedmajor
Repository metrics
- Stars
- (35 stars)
- PR merge metrics
- (PR metrics pending)
Description
Bug or feature request
- Bug
- Feature request
Description of feature (or steps to reproduce if bug)
- Insert 10 rows in a model/table
- Model.find({where: { nonexistingfield: 'test' } })
- Return 10 rows
Expected result
Return 0 (Memory connector return 0 and MongoDB Connector too) In case of SQL this should throw an error ?
Actual result (if bug)
Return all the documents/rows
Additional information (Node.js version, LoopBack version, etc)
Only affect SQL connectors using lib/sql.js