
Hello, I was trying to use teams.listMemberships
method in JavaScript SDK and I wanted to search by userName
attribute. I tried two ways to search on the name:
- The
search
parameter in thelistMemberships
method. This parameter looks like it only searches on the ID and not user name. Query.search("userName", search)
gives an errorappwrite.js?v=76cc79fe:850 Uncaught (in promise) AppwriteException: Invalid
queriesparam: Invalid query: Attribute not found in schema: userName
.
How can I search on userName
then? What is the attribute for teams which holds the userName? Thank you
Recommended threads
- Cannot access my Appwrite database on th...
Hello guys, I am currently developing a web app and using appwrite for authentication, database, storage and messaging. It was working well but since yesterday...
- Nuxt Middleware Support
So I'm trying to protect some routes so that the user is redirected back to the login screen should they not have an active session. However, I'm stuck in a lo...
- Sites Problem
Hi, I keep getting this problem when deploying my site. I have already made sure the site is active which it is. It even shows the preview of my site but when ...
