Skip to content

Commit 2dbcd88

Browse files
committed
added support for skip and limit
1 parent 6b0775f commit 2dbcd88

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

redash/data/query_runner_mongodb.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ def query_runner(query):
197197
else:
198198
cursor = db[collection].find(q, f)
199199

200+
if "skip" in query_data:
201+
cursor = cursor.skip(query_data["skip"])
202+
200203
if "limit" in query_data:
201204
cursor = cursor.limit(query_data["limit"])
202205

0 commit comments

Comments
 (0)