Possible to create a Firebase document from within FlutterFlow & set it's reference from a variable?

Hi all,

Say for example I have a button in FlutterFlow, when I click that button I need to create a Firebase document and set the document reference ID from a page state variable. How can I do this?

Bit of background: I have a firebase collection which contains a single document with an integer field called "ID". When "ID" is created by the user, I need to reference documents of another collection.

5 replies