Hi everyone,
I created a playground query1.mongodb in vs code. In my file where i import pymongo query2.py, i would like to call the query1.mongodb and execute it, and put the result in a cursor.
Is it possible ?
Thank you.
Hi everyone,
I created a playground query1.mongodb in vs code. In my file where i import pymongo query2.py, i would like to call the query1.mongodb and execute it, and put the result in a cursor.
Is it possible ?
Thank you.
You could check the pymongo docs and see if there’s such a function, but if you’re using python, why not convert your query to python? It’s trivial to do so, and for that matter, you could probably write a neat little piece of Open Source to do the conversion automatically.