Closed EdenCoder closed 7 years ago
findById doesn't pass mongoDB ObjectID and therefore will always return null when searching by string.
findById
ObjectID
null
This is an intended behavior, there's no auto casting to ObjectId in Mongorito. See https://github.com/vadimdemedes/mongorito/issues/183#issuecomment-311105030.
ObjectId
findById
doesn't pass mongoDBObjectID
and therefore will always returnnull
when searching by string.