I am using Monary
I have a database in Mongo with a lot of rows and columns. Currently, the way I am using monary is as follows:
client = Monary()
data = client.query("static_database", # Database name
"properties", # Collection name
{}, # Query
["Name","Address1","Address2"], # Field/col names
["string:72"]*3) # The types of each
# field/col
The collection properties
has a lot of field names and I want to take most if not all of those fields into data
. Typing more than 10 fields into a list seems like a pain.
I also want to use different collections in the future, so a way of getting all column/field names would help a lot. I read through the docs and FAQs, yet haven't been able to find a solution.