#AppwriteException: Invalid query: Attribute not found in schema: accountId

31 messages · Page 1 of 1 (latest)

round sierra
#

Using Appwrite for my react native project, I saw other posts to go version 13.0.2 and I changed it in my package.JSON file and removed node modules and reinstalled them however I still get the same exception

it only occurs at this specific line
[Query.equal('accountId', currentAccount.$id)]

#

full message: LOG [AppwriteException: Invalid query: Attribute not found in schema: accountId]

gray ember
#

What do the attributes in that collection look like?

round sierra
#

let me check

#

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

gray ember
#

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

round sierra
#

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

gray ember
#

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

round sierra
#

Yes, it was working before

#

I can double check the user id and etc

#

id is the same and userCollectionId is consistent everywhere else

gray ember
#

Which SDK are you using?

round sierra
#

where can I check

gray ember
#

It should be in package.json

round sierra
#

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

upbeat ruin
round sierra
#

Can you walk me through the steps just in case ?

#

please

#

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

upbeat ruin
round sierra
#

Where can I access network logs?

upbeat ruin
round sierra
#

the exception isn't occuring anymore but I am unsure how it was fixed

#

Thank you for the speedy responses, I think the attribute titled accountid was accountId in my count and i made the change