You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
static function or(...queries)
static function and(...queries)
I suggest to change it to
function or(...queries)
function and(...queries)
// for backward compatibility
static function or(baseQuery, ...queries)
static function and(baseQuery, ...queries)
Example:
const query = new Query(xxx);
query.limit = 10;
const orQuery = query.or(xxx);
// or
const orQuery = Query.or(query, xxxx);
assert orQuery.limit === 10
// while in current implementation, orQuery.limit would be the default one
The new function signature looks more predictable,
this function does not work on empty query array
the original function does not tell how the function treat non-predicate properties
The text was updated successfully, but these errors were encountered:
Steven-Chan
changed the title
Keep Query non-predicate properties when joining query predicates with and/or
Change query and/or to instance method to keep query non-predicate properties when joining predicates
Jun 1, 2018
The current function signature is
I suggest to change it to
Example:
The new function signature looks more predictable,
The text was updated successfully, but these errors were encountered: