I would like to know if specific document exists, update that document and if not create that document is possible in Firestore or not.
For example, user entered some tag with post, then look like this
Firestore.instance.collection('tags').document(tag here).updateData().
Is there any way if that document doesn't exist, then create method or do I have to check if exists before writing it?