I use a collection of documents that I use to identify user groups. My intention is to only fill in the document id field with the user id without having other useless fields in
The following will work for the web:
firebase.firestore().collection('abcd').doc("efgh").set({ name: "...", nullField: null })