
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
- ❗[Help] Function stuck in "waiting" stat...
Hi Appwrite team 👋 I'm trying to contribute to Appwrite and followed the official setup instructions from the CONTRIBUTING.md guide to run the platform locall...
- Help with 409 Error on Relationship Setu...
I ran into a 409 document_already_exists issue. with AppWrite so I tried to debug. Here's what I've set up: Collection A has 3 attributes and a two-way 1-to-m...
- Database Double Requesting Error.
I am getting error for creating new document in an collection with new ID.unique() then too getting error of existing document. When button is pressed one docum...
