Hi, i have a problem:
const result = await database.listDocuments(envs.DATABASE_ID,envs.COLLECTION_ID,[Query.startsWith('date', '2025-04-01')])
this one doesnt work
const result = await database.listDocuments(envs.DATABASE_ID,envs.COLLECTION_ID,[Query.startsWith('date', '2025-04-01T22:03:00.000+00:00')])
and this one does, i dont know why? I need first one to work ofc. Since its startsWith i expect it to work?
update
const startOfDay = ${date}T00:00:00.000+00:00; // Start of the day
const endOfDay = ${new Date(new Date(date).setDate(new Date(date).getDate() + 1)).toISOString().split('T')[0]}T00:00:00.000+00:00;
[ Query.greaterThan('date', startOfDay), Query.lessThan('date', endOfDay) ])
this seems to work but i still dont undestand why first approach is not working, this is working for almost everyday
Recommended threads
- Auth working for emulator but not for ph...
hey guys i'm using appwrite for expo react native it is working perfectly for emulator but does not working for physical devices can u explain any one and it is...
- Database column name change makes table ...
Hi, new here! I'm currently building an app where there's a table called "track_sessions" whose column "creator" I wanted to change to "creatorID". However, af...
- SyntaxError: The requested module 'node-...
I am trying to use appwrite functions and in the function i am creating rows but i got this error when i executed the funtion. As i checked docs there TablesDB...