I have a new user setting I'm hoping to set with a booelan field on the user document. The problem is that the first time the user goes through the flow I want to prompt them to let them know about the new setting and ask them to enable/disable.
Ideally I would just check to see if the field exists on the user document and then save whatever value they set, but that doesn't seem possible. "Field is set" evaluates to true even before a value is saved.
Currently I'm using an integer field instead of boolean, and checking if it equals 0 at first, then setting to 1 or 2 (true or false).
Has anyone implemented anything similar? Thanks!