I'm trying to figure out how to use the mongodb driver 1.1.1
I have not included code, because I am hoping just for a nudge in the right direction.
I've got a function with a client with a connection to the Database and collection (that seems to be fine), but when I try to use the supposed returned cursor from a find method, I am getting a future, not a cursor. Now I accept that that is how futures work, but I can't find any information in how to get the actual cursor. I need the future to complete and I can't seem to find anything that says how to do that.
I watched the rustfest barcelona video on async that suggests using task::block_on, but either that isn't right or more likely I am using it completely wrong.
Can kind soul please point me in the right direction? I'm spinning my wheels here feeling like I'm going to go insane.