Go programming language discussion
noornee
•
1y ago
•
100%
a bson struct tag to create a unique index just like gorm
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
Comments 2