
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
- Is my approach for deleting registered u...
A few weeks ago, I was advised not to use the registered users' id in my web app. Instead, I store the publicly viewable information such as username and email ...
- Stuck in "deleting"
my parent element have relationship that doesnt exist and its stuck in "deleting", i cant delete it gives me error: Collection with the requested ID could not b...
- Help with 409 Error on Relationship Setu...
I ran into a 409 document_already_exists issue. with AppWrite so I tried to debug. Here's what I've set up: Collection A has 3 attributes and a two-way 1-to-m...
