Firebase: flutter want to get a null value

后端 未结 1 1598
夕颜
夕颜 2021-01-27 00:01

I want to get data that is null in a Firebase database

stream: Firestore.instance
      .collection(\'resep\')
      .where(\"email\", isEqualTo: null)
      .sn         


        
相关标签:
1条回答
  • 2021-01-27 00:54

    From the documentation:

    where(dynamic field, { dynamic isEqualTo, dynamic isLessThan, dynamic isLessThanOrEqualTo, dynamic isGreaterThan, dynamic isGreaterThanOrEqualTo, dynamic arrayContains, bool isNull }) → Query Creates and returns a new Query with additional filter on specified field. field refers to a field in a document. [...]

    There is a isNull property

    0 讨论(0)
提交回复
热议问题