DEV Community

Discussion on: Fixing MongoDB's error "'$' by itself is not a valid FieldPath"

Collapse
 
gklijs profile image
Gerard Klijs

Thanks, haven't come across this one, as we model currency according to ISO. But it's nice to know there is an easy solution, I hope I'll remember it when I do need it.

Collapse
 
paulasantamaria profile image
Paula Santamaría

Glad to help! I only realize about this issue accidentally because some client wanted the default (local) currency to be represented as "$" and I just thought "yeah, ok, no big deal" 😅