Back

How to query isNull in REST API

  • 0
  • Databases
huylv
25 May, 2023, 00:51

Hey, I want to query document has null value, is this correct API? I followed doc here https://appwrite.io/docs/rest

TL;DR
Version 1.2.1 of Appwrite does not support querying for null values. You will need to upgrade to version 1.3.x. The query `Query.equal("orderId","")` will not work for checking null values.
huylv
25 May, 2023, 00:52
Drake
25 May, 2023, 01:04

Appwrite 1.2.1 does not support the isNull query. You'll need to upgrade to 1.3.x

Otherwise, your query looks fine

huylv
25 May, 2023, 01:14

is there anyway to query is null in this version, can I use Query.equal("orderId","")

Drake
25 May, 2023, 01:17

I don't think so. That's why the is null query was introduced

huylv
25 May, 2023, 01:25

thank you very much

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