collection method
CollectionReference
collection(
- String collectionName, {
- IntegrationId integrationId = defaultBuiltInDb,
Returns a reference to the collection in the provided integration.
If the integrationId
is not provided, the built_in_db
integration
id will be used.
For more information on the CollectionReference object, please refer to the documentation.
Implementation
CollectionReference collection(String collectionName,
{IntegrationId integrationId = defaultBuiltInDb}) {
_validateNotDestructed();
return _collectionReferenceFactory.get(collectionName, integrationId);
}