It will override the default limit(which is 25) in cloudant database.
Please note:
The query level imit in function Foo.find({limit: <a_query_level_limit>}), should override the globalLimit, which is not implemented in this quick fix PR.
The precedence is:
count, destroyAll: globalLimit > cloudant default limit value 25
@b-admike This is a quick fix for #41 to unblock the customer's release, we still need to improve this feature in #39, I will leave the invalid value check there :-p
Description
Specify a config variable
globalLimit
in your datasource file:It will override the default limit(which is 25) in cloudant database.
Please note: The query level imit in function
Foo.find({limit: <a_query_level_limit>})
, should override theglobalLimit
, which is not implemented in this quick fix PR.The precedence is:
count
,destroyAll
: globalLimit > cloudant default limit value 25find
: query level limit > globalLimit > cloudant default limit value 25Related issues
This is a quick PR to fix https://github.com/strongloop/loopback-connector-couchdb2/issues/41 Please double check this feature and enable the globalLimit in other related methods in https://github.com/strongloop/loopback-connector-couchdb2/issues/39
Checklist