@nicolasrannou Same issue reported Error while referring mongodb native query in another question - Get Help - Metabase Discussion
Also the issue is reported on github too.
@Luiggi This issue seems a major blocker for folks working with MongoDB native queries. Please prioritise accordingly.