
Hi! Is it possible to set a unique index per user on one field? I could store another field with the user ID and create a unique index over both fields. But this is not so nice because in this case document security is enabled so the user is known anyway.

Sorry I'm not quite sure what you mean. What are you trying to do? Make sure no 2 documents have the same value?

Let's assume there is a collection "fruits". Every logged in user can deposit his favorite fruits. Each name of a fruit must be unique (apple, banana, pineapple). Therefore a unique index. But another user can also have "banana" as favorite fruit and should be able to enter it. Therefore I need a unique index for one column per user.

This should be possible with 1 unique index that has both the user id and fruit attributes

ok thanks
Recommended threads
- CSV Not Importing
We don’t seem to having any luck importing a simple .csv file. The import function acts like it’s working but no data imports or is shown in the collection The...
- There is ui Problem in the Display name
in Display name i have selected buy mistake but when its update that time document get blank and also when i remove at that time also not removing and data is s...
- Database is not working
The database is not working plz check and fix this, tnq
