diff --git a/redash/data/query_runner_mongodb.py b/redash/data/query_runner_mongodb.py index 514f49c9..235a277e 100644 --- a/redash/data/query_runner_mongodb.py +++ b/redash/data/query_runner_mongodb.py @@ -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"])