Skip to content
Back

Is "now" a keyword in Queries? I had removed the variable but the fetch still worked

  • 0
  • Databases
  • Functions
upnorth
23 Oct, 2024, 12:01

Query.lessThanEqual('nextReminder', now)

I have added the variable again now but I was very surprised that the function didn't error out first, but seemed to be functioning anyway.

TL;DR
"Now" is not a keyword in queries. It was likely a variable for `Date.now()` that was removed but the function still worked without error. Add the variable back as `now` to ensure proper functionality.
darShan
23 Oct, 2024, 12:03

now is not really a keyword for query. Could've been an import or a variable for Date.now() from somewhere?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more