
i want to make a filed unique for eg username in a social media app how to make this field unique in appwrite

In a given collection?

yes

Add a unqiue index to that attribute

This will make sure any value inside that attrubite will be unqiue

ok

Check Appwrite indexes types

[SOLVED] how to make an attribute unique in appwrite
Recommended threads
- Relationships restricted to a max depth ...
When I do query like: ``` await _databases.listDocuments( databaseId: AppwriteConfig.DATABASE_ID, collectionId: AppwriteConfig.SERVICES_COLLECTI...
- How can we add more than 8 attributes in...
Hey, when I tried to add attribute in my collection it showed me this Error "The maximum number or size of attributes for this collection has been reached." How...
- implement caching
It it possible to cache response for few minutes? I dont want to create function or implement a whole reverse server just to cache it in somewhere ?
