set method

Future<InAppQuerySnapshot?> set(
  1. List<InAppDocumentSnapshot> data, {
  2. bool notifiable = false,
})

Implementation

Future<InAppQuerySnapshot?> set(
  List<InAppDocumentSnapshot> data, {
  bool notifiable = false,
}) {
  final query = InAppQuerySnapshot(id, data);
  return _db
      ._w(
        reference: reference,
        collectionPath: path,
        collectionId: id,
        documentId: id,
        type: InAppWriteType.collection,
        value: query.rootDocs,
      )
      .then((_) => notifiable ? _n(_) : _)
      .then((_) => _ ? query : null);
}