I am adding objects to a document and I want to make sure empty strings and null instances don't add fields as I only want to create fields once they have been actually added
await updateDoc(itemRef,
{thing: '3232',
thing2: null,
thing3:'' });
}
how do I make sure only thing: 3232 is in the new document and the best way to go about it?