Rank 1: Thread
videos and users
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 1: Thread
videos and users
Rank 1: Thread
and their attributes are
Rank 1: Thread
username which is a string
email as email
avatar as url
accountid as a string
Rank 1: Thread
and they are all required
The attribute names are case-sensitive, might be worth trying [Query.equal('accountid', currentAccount.$id)]
Rank 1: Thread
Same issue :/
Rank 1: Thread
const currentUser = await databases.listDocuments(
config.databaseId,
config.userCollectionId,
[Query.equal('accountid', currentAccount.$id)]
)
Rank 1: Thread
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?
Rank 1: Thread
Yes, it was working before
Rank 1: Thread
I can double check the user id and etc
Rank 1: Thread
export const config = {
endpoint: "https://cloud.appwrite.io/v1",
...
userCollectionId: "662e7aac0022ad0bf674",
}
Rank 1: Thread
id is the same and userCollectionId is consistent everywhere else
Which SDK are you using?
Rank 1: Thread
where can I check
It should be in package.json
Rank 1: Thread
"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)?
Rank 1: Thread
Can you walk me through the steps just in case ?
Rank 1: Thread
please
Rank 1: Thread
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
Rank 1: Thread
Where can I access network logs?
Open your browser's dev tools
Rank 1: Thread