Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 34f7b50

Browse files
committed
Add range comparison for query endpoint
1 parent c1ea957 commit 34f7b50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/orbitdb-api.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ class OrbitdbAPI extends Express {
102102
'gte': (a, b) => a >= b,
103103
'lte': (a, b) => a <= b,
104104
'mod': (a, b, c) => a % b == c,
105+
'range': (a, b, c) => min(b,c) >= a && a <= max(b,c),
105106
'all': () => true
106107
};
107108

0 commit comments

Comments
 (0)