Custom objects
Are you getting an error along the lines of
cityConverter is not a function ?
Dont miss a single ;
( semicolon ) especially after the cityConverter object, this should solve your problem. It is a simple JS parsing problem, nothing related with Firestore or your understanding of Firestore