0

I am trying to use the following code:

FirebaseFirestore.instance.collection('alerts').where('acknowledge', arrayContains: user?.uid).snapshots();

but I need arrayContains to be arrayNotContains? Is there a simple way to do this? I have done a search and it seems others have struggled with the same issue.

1 Answers1

0

There is no "array-not-contains" operator in Cloud Firestore at the moment.

I recommend reading this answer, as it explains why this operation is not supported.

atefsawaed
  • 543
  • 8
  • 14