I am new to firestore and am building an app that allows users to rent a bicycle. When a user rents a bicycle they have to book it on a specific date.
I would like to perform a query that retrieves vehicles that have not been booked on a particular date. Say for instance a user selects the 28th of june, the results from the query should be vehicles which have not been booked on the 28th.

In firestore i save the booked dates as an array like so
[![enter image description here](https://i.stack.imgur.com/Fvr3R.png)](https://i.stack.imgur.com/Fvr3R.png)

So i tried to use this to get dates not in the array but it didn't seem to work.

```
List dates = [2021-08-05-25.12.00.000000];
FirebaseFirestore.instance
.collection('bicycles')
.where('bookedDates',whereNotIn: dates)
.get()

```

I would appreciate any help on this