Query.between('bookingStart', date.toIso8601String(),
date.add(const Duration(days: 1)).toIso8601String()),
Are you running against the cloud?
between was added in version 1.3.0
It won't work with the cloud just yet
ohh I see so how can I query date?
I have calendar picker when I want to pick date then I have to fetch all document that have the same date
Use graterThan or lessThan queries
Query.greaterThanEqual('bookingStart', date.toIso8601String()),
Query.lessThanEqual(
'bookingStart', date.add(const Duration(days: 1)).toIso8601String()),
not working
I can recreate it tomorrow to check if it won't get solved be then
[SOLVED] (Query method not valid: between)
Just for the record, there is an issue for this: https://github.com/appwrite/appwrite/issues/5650
Recommended threads
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...
- Query.search limitation
Since `string` is deprecated I used `varchar`, and now I cant use `Query.contains` , so I setup fulltext index and started using `Query.search` the issue is `Qu...