Abhinav Jhaabhinav3254.hashnode.dev·Mar 3, 2024Unraveling MongoDB's Mystique: Decoding the Auto-generated _idIf you've ever worked with MongoDB, you're likely acquainted with the _id field, which MongoDB auto-generates if an ID isn't provided explicitly. Now, let's delve into the structure of this auto-generated _id in MongoDB. The _id is a 12-byte hexadeci...Discuss·6 likesMongoDB
Merge Simpsonletsdev.hashnode.dev·Nov 16, 2023Enum아 Enum아, 너만 말고 너의 값도 유니크해 다오 Java🇰🇷 Kor: 지금 보는 중!🗺 Eng: Not yet!🇯🇵 Jap: まだです。 🪖 "enum은 개인주의야." 자바에서 enum은 열거 타입이라고 해서, 여러 선택지를 나열한 특별한 클래스 유형이죠. 그래서 기본적으로 서로 구분되는 유니크 상태입니다. 서로 구분되는 상태나 역할 등을 표현하는 데에 좋습니다. public enum AccountStatus { PENDING, ACTIVE, PROTECTED, ...Discuss·42 readsJava
RobertoTorinocloudit.hashnode.dev·Nov 4, 2022Make Your Id UniqueThere are situations where you want uniqueness but you can not use numbers only letters to distinguish uniqueness, here's an example on how to achieve this: export function makeUnique() { let text = ''; const rangeChoice = 'abcdefghijklmnopqr...Discussunique