A filter that checks if a value is between two values.
The type of the value to filter
The lower bound of the filter
The upper bound of the filter
Whether the lower bound is open
Whether the upper bound is open
// Get all users with an age between 20 and 30const query = User.filter({ age: new BetweenFilter(20, 30) })// Get all users with an age between 20 and 30, excluding 20 and 30const query = User.filter({ age: new BetweenFilter(20, 30, true, true) }) Copy
// Get all users with an age between 20 and 30const query = User.filter({ age: new BetweenFilter(20, 30) })// Get all users with an age between 20 and 30, excluding 20 and 30const query = User.filter({ age: new BetweenFilter(20, 30, true, true) })
Static
The "maximum" key for IDB
The minimum key for IDB
Checks if a value fits the filter.
The value to check
Returns the IDBKeyRange for this filter.
A filter that checks if a value is between two values.