Skip to content

Commit 6a5c6c2

Browse files
Merge pull request #117 from bharathkontham/master
Fixed fields only query issue
2 parents b11648f + dfe5322 commit 6a5c6c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/esConnector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ ESConnector.prototype.buildFilter = function (modelName, idName, criteria, size,
469469
};
470470
}
471471
// For 'limit' and 'include filters'
472-
else if (criteria.limit || criteria.include) {
472+
else if (criteria.limit || criteria.include || criteria.fields) {
473473
filter.body.query = self.buildWhere(modelName, idName, criteria.where || {}).query;
474474
}
475475
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "loopback-connector-esv6",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "LoopBack Connector for Elasticsearch 6.x",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)