Skip to content

Feature request - Add batch API #12

Closed
@liranzairi

Description

@liranzairi

Just like we have the transaction API, it'll be useful to also have a batch API in the odm that works in a similar way, e.g:

// Today's transaction API:
await FirebaseFirestore.instance.runTransaction((transaction) async {
  collectionRef.doc('123').transactionUpdate(transaction, title: 'New Title');
});

// Suggested batch API:
final batch = FirebaseFirestore.instance.batch();
collectionRef.doc('123').batchUpdate(batch, title: 'New Title');
await batch.commit();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions