Collection does not exist error

Hi,

I am storing data from a form into the “Onboarding form” collection. However, additional data can be added to the form at any time. I am therefore querying the collection when a button is clicked that searches for the item _id. If the _id is found, then I want the collection to be updated and if no _id is found then I want the item to be inserted into the collection instead.