Uniqueness enforcement
Is there any way to enforce "unique" documents at the field/property level?
As in, can we make it so that we're able to set a property to hold a unique requirement, where only unique documents can be added based on that property?
2 Replies
You can't configure a field to be unique, but enforcing uniqueness at the code level is simple to do:
https://discord.com/channels/1019350475847499849/1130486747931877498
Another related thread: https://discord.com/channels/1019350475847499849/1156842410517745725