We need a feature like: "If field of document exists" [Firebase]

This is useful because when a user is already logged in, we don’t want to overwrite their existing data. Instead, we could do something like:

  • If field of document exists** → Load field (e.g., “Money”)
  • If field of document does not exist** → Create and write the field (e.g., “Money”)

This would help prevent data loss and make it easier to manage user-specific data dynamically.

Yeap I found out about it quite a lot time ago but like how was a new user supposed to know this?, what I’m trying to say is if they added more conditions it would be way easier.