Firestore- Flutter array contains

后端 未结 3 2040
温柔的废话
温柔的废话 2020-12-12 03:25

I saw this and JavaScript supports \'array-contains\' but what about flutter? Is there any way to query array that contains? Or flutter not support this?

相关标签:
3条回答
  • 2020-12-12 03:43

    The array-contains feature was added in version 0.8.0 of the FlutterFire library.

    See https://github.com/flutter/flutter/issues/20489#issuecomment-419181186

    0 讨论(0)
  • 2020-12-12 03:47

    Today I discover that they add array-contains to the plugin in version 0.8.0:

    https://github.com/flutter/plugins/blob/master/packages/cloud_firestore/CHANGELOG.md

    For iOS you should update the pod with pod update Firebase/Firestore

    0 讨论(0)
  • 2020-12-12 03:56

    Best thing to do right now is to use a firebase cloud functions to achieve whatever isnt yet available for the flutter firestore library. Thats what i intend to do when its time to refactor.

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