I'm trying to do a query with projection in a GridFS like this:
Files = gridfs.GridFS(db)
f = Files.find({'metadata.AgentId': '1234'}, {'_id':1})
And i'm getting this error:
TypeError: skip must be an instance of int
So, the initializer for Cursor is taking {'_id':1} as the third parameter >> skip.
On the other hand, this query is working fine in the Robo3T shell:
Any idea?