User collection unique username
Is it possible to ensure when the user signs up to our app that the userName is unique? I noticed that the field userName in the Users collection is not a key field and therefore allows duplicate entries.
Do I need to do a query first or is there a way to set this field to be 'unique'?
Regards,
Alon