collection
@ExperimentalKBsonSerializerApi
Get a MongoCollection that exposes methods to retrieve and update data from the remote collection of objects of schema type T.
Serialization to and from EJSON is performed with KBSON and requires to opt-in to the experimental ExperimentalKBsonSerializerApi-feature.
Return
a MongoCollection that will accept and return entities from the remote collection as T values.
Parameters
eJson
the EJson serializer that the MongoCollection should use to convert objects and primary keys with. Will default to the databases EJson instance.
T
the schema type indicating which for which remote entities of the collection will be serialized from and to.