
TypeScript
import sdk, { ID, Permission, Role, Databases, Query } from "node-appwrite";
import {PUBLIC_API_ENDPOINT, PUBLIC_PROJECT_ID, PUBLIC_API_KEY, } from '$env/static/public'
// Init SDK
const client = new sdk.Client();
const databases = new sdk.Databases(client);
const collectionId = databases.listDocuments(
'64502243369b884d71f8',
'647295a5228d3bd685da',
[
Query.select("accountId", accountId)
]
);```
`attributes.map is not a function error`
I got this error when I changed `Query.search("accountId", accountId)` to `Query.select("accountId", accountId)`
TL;DR
The user encountered an error with the message "attributes.map is not a function". They were using the Appwrite SDK and had made a change in their code from `Query.search("accountId", accountId)` to `Query.select("accountId", accountId)`. The user later resolved the issue.
NVM I Got it

[SOLVED] attributes.map is not a function error
Recommended threads
- Hello all, does anyone know if it is po...
I'm looking for information on how to migrate to here from Mocha, while retaining my ties with stripe and react. Any Ideas ?
- Problem marking Apple Push-Notificaton a...
I was able to set up Push-Notifications via Appwrite function for my iOS App. I now wanted to increase the Badge count everytime the user gets a notifcation. Us...
- 404 messaging console bug 1.7.4
i upgraded from 1.6.1 to 1.6.2 and then to 1.7.4 Everything went well and seems to be working. The only issue is in the console When i browse anywhere in my pr...
