Back

Query method not valid

  • 0
  • Databases
showmore
2 May, 2023, 08:26

hey guys how are you? I have query question for 1.3 v

TypeScript
      queries: [
        Query.isNotNull("region")
      ]

Through Error

TypeScript
"msg":"Query method not valid: isNotNull"

Can any one please, explain why is happing

TL;DR
User is experiencing an error with a query method in Appwrite 1.3. The error message states "Query method not valid: isNotNull". User is using dart_appwrite version 8.0.0. The solution is to switch to a compatible SDK version, such as version 1.0.x.
joeyouss
2 May, 2023, 09:00

Hi - let me take a look

Christy Jacob
2 May, 2023, 09:06

Hey which SDK are you using and which Appwrite server version are you using ?

Christy Jacob
2 May, 2023, 09:06

@showmore

showmore
2 May, 2023, 14:22

dart

showmore
2 May, 2023, 14:23

dart_appwrite: ^8.0.0

Drake
2 May, 2023, 14:50

That version is for Appwrite 1.0.x which does not have Query.isNotNull(). See https://github.com/appwrite/sdk-for-flutter/tree/8.0.0

showmore
2 May, 2023, 14:57

its not for 1.0.x

Drake
2 May, 2023, 15:10

oops sorry i was looking at the flutter sdk

Drake
2 May, 2023, 15:14

where is the error thrown?

showmore
2 May, 2023, 15:18

inside my function, when I execute it, if I remove the query it works fine. I read the error inside executions ->logs

Drake
2 May, 2023, 15:18

so during execution...in an Appwrite Function? Is this on your own version 1.3 server?

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