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.