with Document Class
Create a new collection instance with a different default class to cast any documents returned from the database into.
Return
a new MongoCollection instance with the different default class
Parameters
R
the default class to cast any documents returned from the database into.
result Class
the target document type for the collection.
Create a new collection instance with a different default class to cast any documents returned from the database into.
Return
a new MongoCollection instance with the different default class
Parameters
R
the default class to cast any documents returned from the database into.