document_family 0.0.1 document_family: ^0.0.1 copied to clipboard
delete Document include all sub collections
document_family #
firestore 문서와 하위 collection 들을 모두 제거하는 플러그인입니다.
Getting Started #
final DocumentReference docRef = FirebaseFirestore.instance
.collection('some-collection')
.doc('example123');
final children = [
{'collection': 'members'},
{'collection': 'requestingMembers'},
{
'collection': 'tracking',
'children': [
{'collection': 'history'},
],
},
];
await DocumentFamily(docRef, children).delete();