collection method

CollectionReference<Map<String, dynamic>> collection(
  1. String collectionPath
)

Gets a reference to a collection.

Parameters:

  • collectionPath: The path to the collection.

Returns: A CollectionReference.

Example:

var col = db.collection('users');

Implementation

CollectionReference<Map<String, dynamic>> collection(String collectionPath) {
  return CollectionReference(
    helper: QueryHelper(),
    oracledb: instanceFor(app: app),
    path: collectionPath,
  );
}