AppwriteException: Invalid query: Attribute not found in schema: accountId
- 0
- Databases
- Auth
- Apple
- Web

videos and users

and their attributes are

username which is a string email as email avatar as url accountid as a string

and they are all required

The attribute names are case-sensitive, might be worth trying [Query.equal('accountid', currentAccount.$id)]

Same issue :/

const currentUser = await databases.listDocuments( config.databaseId, config.userCollectionId, [Query.equal('accountid', currentAccount.$id)] )

I also went to version 13.0.2 and reinstalled, I am unsure why there is still an error

And the value of config.userCollectionId
is the correct ID of that collection?

Yes, it was working before

I can double check the user id and etc

export const config = { endpoint: "https://cloud.appwrite.io/v1", ... userCollectionId: "662e7aac0022ad0bf674", }

id is the same and userCollectionId is consistent everywhere else

Which SDK are you using?

where can I check

It should be in package.json

"dependencies": { "appwrite": "^13.0.2", "expo": "~50.0.17",

Would you please share either the JSON for the collection or a screenshot of the collection in the Appwrite console (including the url)?

Can you walk me through the steps just in case ?

please

do you want me to share the package.json file entirely ?

No, in your browser's network logs there should be a request for the collections in your database. I'm asking for the response body that has the JSON

Where can I access network logs?

Open your browser's dev tools

Recommended threads
- Query params are way too limiting in ter...
I was trying to list rows in a table that do not already exist in another table. I retrieved around 260 row IDs which are 13 characters in length each, and then...
- [Node.js SDK] Bypass 2GB file limit?
Hello. Using either InputFile.fromPath or InputFile.fromBuffer throws this error: File size (2295467305) is greater than 2 GiB Bucket limit etc. is setup corre...
- Can not login with OAuth
Hello everyone i am trying to login with ios and android in react native - expo but it is not successful. And this is the code which i am using to login
