loopback-datasource-juggler/lib
Miroslav Bajtoš aa20180c4f
Fix "access" hook for unoptimized "near" queries
Before this change, when an "access" hook modified the "query" object,
the "near" condition from the original "query" object were still
applied. As a result, the query can end up being more restrictive and
return only a subset of models that should have matched the conditions.

With this change in place, after "access" hook observers are invoked,
we update the "near" condition using the "query" object provided by
hook observers.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2019-05-14 09:17:54 +02:00
..
connectors chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
kvao chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
browser.depd.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
dao.js Fix "access" hook for unoptimized "near" queries 2019-05-14 09:17:54 +02:00
datasource.js datasource: copy settings object in constructor 2019-05-10 14:56:02 +02:00
date-string.js Fix DateString ctor to accept DateString instances 2019-05-13 15:21:00 +02:00
geo.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
hooks.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
include.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
include_utils.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
introspection.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
jutil.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
list.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
mixins.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
model-builder.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
model-definition.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
model-utils.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
model.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
observer.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
relation-definition.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
relations.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
scope.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
transaction.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
types.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
utils.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
validations.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00