loopback-datasource-juggler/lib
Miroslav Bajtoš c4ff74a723
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:21:28 +02:00
..
connectors eslint: manually fix remaining problems 2018-12-07 17:14:57 +01:00
kvao eslint: autofix linting errors 2018-12-07 17:13:48 +01:00
browser.depd.js eslint: autofix linting errors 2018-12-07 17:13:48 +01:00
dao.js Fix "access" hook for unoptimized "near" queries 2019-05-14 09:21:28 +02:00
datasource.js eslint: manually fix remaining problems 2018-12-07 17:14:57 +01:00
date-string.js Fix DateString ctor to accept DateString instances 2019-05-13 16:08:20 +02:00
geo.js eslint: manually fix remaining problems 2018-12-07 17:14:57 +01:00
hooks.js eslint: autofix linting errors 2018-12-07 17:13:48 +01:00
include.js fix: normalize include with boolean or number 2019-04-12 17:05:41 +02:00
include_utils.js eslint: autofix linting errors 2018-12-07 17:13:48 +01:00
introspection.js eslint: autofix linting errors 2018-12-07 17:13:48 +01:00
jutil.js eslint: autofix linting errors 2018-12-07 17:13:48 +01:00
list.js fix: coerce date array properties 2019-04-18 10:09:50 -04:00
mixins.js eslint: autofix linting errors 2018-12-07 17:13:48 +01:00
model-builder.js feat: Support "type" key in sub-properties in 3.x 2019-03-07 16:50:29 +05:30
model-definition.js eslint: autofix linting errors 2018-12-07 17:13:48 +01:00
model-utils.js fix: allow coercion of nested properties 2019-05-03 18:38:44 -04:00
model.js Add support for Node.js 12.x 2019-04-30 09:14:37 +02:00
observer.js eslint: autofix linting errors 2018-12-07 17:13:48 +01:00
relation-definition.js eslint: manually fix remaining problems 2018-12-07 17:14:57 +01:00
relations.js eslint: autofix linting errors 2018-12-07 17:13:48 +01:00
scope.js eslint: manually fix remaining problems 2018-12-07 17:14:57 +01:00
transaction.js eslint: autofix linting errors 2018-12-07 17:13:48 +01:00
types.js eslint: autofix linting errors 2018-12-07 17:13:48 +01:00
utils.js eslint: autofix linting errors 2018-12-07 17:13:48 +01:00
validations.js eslint: manually fix remaining problems 2018-12-07 17:14:57 +01:00