Reputation: 1377
I want to save documents to designated Mongo collection from other 3rd party API that uses Mongo too. I want to keep those id's so I would be able to check if I'm not saving duplicates.
Upvotes: 0
Views: 31
Reputation: 494
(a) The likelihood is very low, but I will advise against it.
(b) Yes, it is. I can think of modifying it in the pr-save hook of your schema definition. There might also be modules out there for this.
Upvotes: 1