How do I create a document to a subcollection?

Database & APIs

Hey guys, so right now, I have a collection called rental items (Contains the item's general Info) and a subcollection called photos. The goal is that when a user creates a rental item, a document gets created for the rental items collection and the photo's subcollection. How do I do it? Especially since I don't have access to the rental Item ID yet?

What have you tried so far?

I've tried making the form into seperate pages, so I could pass the created document to the next page, but I'm still lost

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