Is FieldPath supported in Flutter?

前端 未结 2 1318
梦毁少年i
梦毁少年i 2020-12-18 11:07

I could not find FieldPath in the cloud_firestore Flutter plugin, however, I would assume that this is a very common tool that would be one of the first impleme

2条回答
  •  清歌不尽
    2020-12-18 11:58

    This works for me. (I am not sure this is what you wanted.)

    Firestore.instance.collection('/collection-name')
      .where(FieldPath.documentId, isEqualTo: _someID)
      .snapshots().listen((snapshots){
        /*
    
        */
      });
    

提交回复
热议问题