GILO
GILO

Reputation: 2623

Is there a way to create a document with a specific filename in flutter firebase

I need a way in which to create a firebase document with a specific name.

Firestore.instance.collection("fruit").add(filename = "banna")/// Semi pseudo

Upvotes: 1

Views: 77

Answers (1)

Chenna Reddy
Chenna Reddy

Reputation: 2341

Do this instead Firestore.instance.collection("fruit").document("banana"). setData({taste:"yummy"});

Upvotes: 3

Related Questions