Doug
 · Founder at Reffo

Updating a non-existant doc in FireStore

Database & APIs

I have a doc (col/doc/col/doc) that does not exist. When a user uploads some files for the first time, I want to create the doc (a list of dataTypes (imagePath + TimeStamp)) and add the data. The problem is, the reference I use to set the data doesn't exist so it throws a null error.

In firebase, i would usually use set() with merge : True. But in Flutterflow, how do I do this?

Thanks!

~@FF Team, I shouldn't have to add an image to post here...

What have you tried so far?

Using update.
Using Set (Destructive)

Did you check FlutterFlow's Documentation for this topic?
Yes
4 replies