collection method

  1. @override
DualityViewColReference<Map<String, dynamic>> collection(
  1. String collectionPath
)
override

Gets a subcollection reference. Throws error as subcollections not supported in duality view.

Parameters:

  • collectionPath: The path to the subcollection.

Returns: Throws an error.

Example:

// This will throw an error
docRef.collection('subcol');

Implementation

@override
/// Gets a subcollection reference. Throws error as subcollections not supported in duality view.
///
/// Parameters:
/// - [collectionPath]: The path to the subcollection.
///
/// Returns:
/// Throws an error.
///
/// Example:
/// ```dart
/// // This will throw an error
/// docRef.collection('subcol');
/// ```
DualityViewColReference<Map<String, dynamic>> collection(String collectionPath) {
  throw Utils.oracledbErrorHandler(
        400, "Subcollections are not supported in duality view.", null);
}