TurboFirestoreGetApi<T> extension
Extension that adds read/get operations to TurboFirestoreApi
This extension provides methods for retrieving documents from Firestore
Features:
- Single document retrieval
- Type-safe document conversion
- Document reference access
- Local ID and reference field management
- Collection group queries
- Custom collection path overrides
Example:
final api = TurboFirestoreApi<User>();
final response = await api.getById(id: 'user-123');
See also:
- TurboFirestoreCreateApi document creation and updates
- TurboFirestoreDeleteApi document deletion
- on
Methods
-
getById(
{required String id, String? collectionPathOverride}) → Future< TurboResponse< Map< >String, dynamic> > -
Available on TurboFirestoreApi<
Retrieves a document by its unique identifierT> , provided by the TurboFirestoreGetApi extension -
getByIdWithConverter(
{required String id, String? collectionPathOverride}) → Future< TurboResponse< T> > -
Available on TurboFirestoreApi<
Retrieves and converts a document by its unique identifierT> , provided by the TurboFirestoreGetApi extension -
getDocRefById(
{required String id, String? collectionPathOverride}) → DocumentReference< Map< String, dynamic> > -
Available on TurboFirestoreApi<
Gets a document reference by ID for raw data accessT> , provided by the TurboFirestoreGetApi extension -
getDocRefByIdWithConverter(
{required String id, String? collectionPathOverride}) → DocumentReference< T> -
Available on TurboFirestoreApi<
Gets a document reference with type conversionT> , provided by the TurboFirestoreGetApi extension -
getDocSnapshotById(
{required String id, String? collectionPathOverride}) → Future< DocumentSnapshot< Map< >String, dynamic> > -
Available on TurboFirestoreApi<
Gets a document snapshot for raw data accessT> , provided by the TurboFirestoreGetApi extension -
getDocSnapshotByIdWithConverter(
{required String id, String? collectionPathOverride}) → Future< DocumentSnapshot< T> > -
Available on TurboFirestoreApi<
Gets a document snapshot with type conversionT> , provided by the TurboFirestoreGetApi extension