Back

Query.greaterThanEqual() is not working in Appwrite Database

  • 1
  • Databases
  • Web
  • Cloud
Divyansh Gemini
7 May, 2024, 14:43

I'm developing an eCommerce website using Next.js and Appwrite.

To get all documents from Appwrite Database, I'm using Query.greaterThanEqual("stock", 0), but I'm getting only products having stock > 0.

TL;DR
Issue with Query.greaterThanEqual() in Appwrite Database for an eCommerce website. Make sure to check the attribute type and default value.
Steven
7 May, 2024, 14:57

What type is the attribute? Did you set it to 0 or was it a default value?

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