Closed J-avery32 closed 3 years ago
Currently two different references could be inserted into the system with two of the same DOIs. We should make it so that a document must either have a unique DOI or no DOI.
To do this we can make a partial index: https://docs.mongodb.com/manual/core/index-partial/#std-label-index-type-partial
Currently two different references could be inserted into the system with two of the same DOIs. We should make it so that a document must either have a unique DOI or no DOI.