Open truemetal opened 7 years ago
This code returns no rows:
let res = Collection() try? res.get("58d29558a54d7552e223dae3") let rows = res.rows()
Doing same in robomongo returns correct object:
robomongo
db.getCollection('collections').find({` _id : ObjectId("58d29558a54d7552e223dae3") })
Working it around like so for now:
let bs = BSON() bs.append(oid: BSON.OID(id)) guard let cursor = collection.find(query: bs) else { return }
This code returns no rows:
Doing same in
robomongo
returns correct object:Working it around like so for now: