Back

[Solved]node-appwrite select query not valid

  • 0
  • Self Hosted
  • Databases
fadkeabhi
1 Jun, 2023, 04:15

I was working with queries and I am able to use all other queries but when I came along select query it's giving error.

TL;DR
The user was experiencing an error when trying to use a select query in the node-appwrite app. Another user suggested checking the version of node-appwrite being used, as well as the version specified in the package.json file. The user confirmed they were using version 9.0.0. It was later discovered that the select query is not supported in the Appwrite cloud version 1.1.2, which was causing the error.
Binyamin
1 Jun, 2023, 04:30

The cloud doesn't support the select query yet. As the cloud is on version 1.1.2 and select was added in 1.3.0

jekalat
1 Jun, 2023, 16:18

@Binyamin Hi! I can't use query.select in appwrite 1.3.1. I see only: Error: TypeError: Query.select is not a function. Can you help me?

Binyamin
1 Jun, 2023, 16:22

Make sure that you're using version 9.0.0 of node-appwrite

TypeScript
  "dependencies": {
    "node-appwrite": "^9.0.0"
  }

Try again and lmn.

jekalat
1 Jun, 2023, 16:28

Where I can see this? I have installed node-appwrite 9.0.0 globaly. Thank you

Binyamin
1 Jun, 2023, 16:28

In your package.json

jekalat
1 Jun, 2023, 16:36

Thank you. Was 8.0.0, I changed to 9.0.0. Does not see “ the speck in the eye” )). But now have server error in response. can not see the module? Can you tell me what could be causing this?

Binyamin
1 Jun, 2023, 16:38

What is the error? Are you running against the Appwrite cloud?

jekalat
1 Jun, 2023, 16:40

“Error: Server Error” No, running on aws instance

Binyamin
1 Jun, 2023, 16:40

Mmm for that we need to get the container logs Can you run

TypeScript
docker logs appwrite

And share the results?

jekalat
1 Jun, 2023, 16:40

I know cloud is only 1.1

jekalat
1 Jun, 2023, 16:52

Yes,thank you. Understood. Throws "Server Error" when I try to select an attribute relationship. With the rest of attributes everything works. I want to thank you again

fadkeabhi
2 Jun, 2023, 07:38

[Solved]node-appwrite select query not valid

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