mongodb – compound unique index using spring data not working
I am trying to create unique compound index in mongodb using spring data. But I see that the index is not created and the duplicate document is created in the DB. My entity class: @Document @Getter @Setter @AllArgsConstructor @NoArgsConstructor @CompoundIndexes(…