posted 6 years ago
Hi,
Actually a BasicDBObject class is a list of Objects.
While querying you can directly cast to a DBObject. if you are not sure about what the object is, then you can add check whether the object is instanceOf DBObject.
if you are not sure about what the object is, then you can add check whether the object is instanceOf DBObject as below
Thanks,
Arumugarani