a bson struct tag to create a unique index just like gorm
a bson struct tag to create a unique index just like gorm
![](https://lemmy.ml/pictrs/image/526feac9-ffb3-414b-a75d-997bc2378342.png?thumbnail=1024&format=webp)
I'm trying to find a bson struct tag to create a unique index just like the one in the image attached to this post but for mongodb. i tried searching and i found nothing Close to what i need but this stackoverflow post https://stackoverflow.com/questions/30831316/how-to-specify-a-struct-with-a-multi-column-unique-index-for-gorm
0
comments