-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Native MongoDB queries don't work if they contain ISODate() calls #3170
Comments
@cwbeck it looks like Metabase is trying to parse your MongoDB query as JSON (which works in most cases). We need to skip parsing and just pass the query string in directly because as this example shows Mongo aggregation pipeline queries are not necessarily strict JSON. |
@camsaul thanks for the update. I'll take a look shortly |
So as far as I can tell there is no easy way to handle this situation given our current setup with Monger (our Mongo library). I've opened an issue upstream here: michaelklishin/monger#143 So until we have time to roll our own Mongo library for Clojure that handles our needs I'm going to have to mark this as a limitation 💔 |
@camsaul I was dealing with MongoDB native queries in metabase. In sql, one can add query parameters using {{var_name}}. What is the format for MongoDB query parameters? Using same format was throwing errors that "It is expecting double-quote to start field name. Whether this feature has been added or not? |
Fixed by #4132 |
WARNING: below is outdated, and using
|
Not working for me, it is showing: No results! |
Query fails to run: (MongoDB)
The text was updated successfully, but these errors were encountered: