createRecord abstract method

Future<String?> createRecord(
  1. String collectionPath,
  2. Map<String, dynamic> recordMap
)

Creates a record as map for database inputs and returns the generated document id.

  • collectionPath The path to the collection. e.g - "restaurants" - "restaurants/{restaurantId}/menuItems"

Implementation

Future<String?> createRecord(
  String collectionPath,
  Map<String, dynamic> recordMap,
);