unique index does not throw DuplicateKeyError
Maybe I'm misunderstanding how it should work but I'm trying to handle duplicates on the client to faster feedback.
I have added an index to my collection and it correctly deduplicates the data, however my insert just fails silently now
and when submitting the form:
However this never throws, it just silently deduplicates on insert.
It worked perfectly when I had a duplicate key in the collection, just not for indices
I have added an index to my collection and it correctly deduplicates the data, however my insert just fails silently now
and when submitting the form:
However this never throws, it just silently deduplicates on insert.
It worked perfectly when I had a duplicate key in the collection, just not for indices