我在Firestore中有这样的数据库结构: ? 这是什么里面的地方 ? 如何在flutter中进行查询以获取Places子集合中的所有数据以及用户集合中的名称,此代码可从每个用户集合中获取所有places子集合数据: Future<List<PlaceModel>> getPlaces() async {
List<PlaceModel> placesList = [];
// get all docs from user collection
var users = await udb.get();
for( var u
他说,我是第一次接触flutter:我将用户数据保存在firestore中,im使用uid作为文档名称,im尝试从firestore获取数据,然后将其保存到变量中。 ? 下面是我试图将数据提取到变量中的代码: var uid = FirebaseAuth.instance.currentUser.uid;
var _phone = FirebaseFirestore.instance.collection('Users').doc(uid).collection('phone').get().toString();
var _
我尝试通过文档的"id“来获取特定文档的信息,以显示该文档的信息。
我在服务中使用的代码是:
class SentenciasFireBase {
//This is a class where I have all the services of firebase
...
obtenerVacaciones(String empleado) async {
//empleado is the document id
return await Firestore.instance.document('Vacaciones/$empleado'