mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 01:25:16 +00:00
added support for skip and limit
This commit is contained in:
parent
6b0775f7c7
commit
2dbcd88313
@ -197,6 +197,9 @@ def mongodb(connection_string):
|
||||
else:
|
||||
cursor = db[collection].find(q, f)
|
||||
|
||||
if "skip" in query_data:
|
||||
cursor = cursor.skip(query_data["skip"])
|
||||
|
||||
if "limit" in query_data:
|
||||
cursor = cursor.limit(query_data["limit"])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user