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
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...
- What Query's are valid for GetDocument?
Documentation shows that Queries are valid here, but doesn't explain which queries are valid. At first I presumed this to be a bug, but before creating a githu...