I've a collection with contacts with a structure like:
name: 'XPTO'
emails: { susan@xpto.com: 'Susan', fred@xpto.com: 'Fred' }
But the query will not return result:
db.firestore().collection('contacts').where('emails.susan@xpto.com', '==', 'Susan').get().then(...
Because of the dot at "susan@xpto.com"
How to escape the dot?
I've tried ``
and [ ]
and didn't work.
where
doesn't look valid. It takes three arguments, not one. firebase.google.com/docs/reference/js/… – Doug Stevenson Mar 21 '18 at 0:21