
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
- Can't change CPU and memory limits
In an existing function I am unable to adjust the CPU and memory limits dedicated to it. This issue has been referenced before: - https://discord.com/channels/5...
- Hey ,why this issue
hey , why this issue Access to fetch at 'https://cloud.appwrite.io/v1/databases/68dd166…/collections/met…22%2C"attribute"%3A"searchterm"%2C"values"%3A%5B"d7"%...
- Issue with unarchiving a project
I have a total of 2 projects on my appwrite account and the dashboard still shows one of them as archived and won't let me unarchive it. My mail id is rushilse...
