I am getting this error when I am using Query.select
caught (in promise) AppwriteException: Query method not valid: select
This is my code it is trying to run. everything works but Query.
import Nav from "$lib/components/nav.svelte";
import { onMount } from "svelte";
import { Client, Account, Databases, Query } from "appwrite";
const client = new Client();
const account = new Account(client);
const databases = new Databases(client);
client
.setEndpoint("http://localhost:3080/v1") // Your API Endpoint
.setProject("63db6c4c0a25ec0b287d"); // Your project ID
let accountName;
let accountEmail;
let accountPhone;
onMount(async () => {
const accountDetails = await account.get();
accountName = accountDetails.name;
accountEmail = accountDetails.email;
accountPhone = accountDetails.phone;
const docs = databases.listDocuments(
"64502243369b884d71f8",
"6450225bbca140600f16",
[Query.select(["name"])]
);
console.log((await docs).documents.feet);
}); ```
What version of Appwrite are you on?
"appwrite": "^11.0.0",
"node-appwrite": "^9.0.0"
Version of Appwrite, not the sdks
Like what dockers is running? if so idk how to check
docker ps
1.20
The select query was introduced in 1.3
Ok i see. I will figure out how to update
I got it all working Thank you!
[SOLVED] Query.select error
Recommended threads
- I'm getting error Invalid `url` param: I...
``` 2025-10-26T12:52:02.292Z [error] AppwriteException: Invalid `url` param: Invalid URI. Register your new client (vercel.com) as a new Web platform on your pr...
- Deployed website on Sites not opening.
Hey y'all. I deployed a site as a submission for the Sites Hackathon, which was nearly a month ago. After the hackathon, I never really opened the site. Now, wh...
- I'm getting error Invalid `url` param: I...
``` 2025-10-26T12:52:02.292Z [error] AppwriteException: Invalid `url` param: Invalid URI. Register your new client (vercel.com) as a new Web platform on your pr...