Skip to content

Instantly share code, notes, and snippets.

@jaimemin
Created July 14, 2025 15:09
Show Gist options
  • Select an option

  • Save jaimemin/dc1aa3b855487e8ad600bc6bbeb061e0 to your computer and use it in GitHub Desktop.

Select an option

Save jaimemin/dc1aa3b855487e8ad600bc6bbeb061e0 to your computer and use it in GitHub Desktop.
// 새로운 사용자가 가입할 때마다 사용자 이름이 고유한지 확인
db.users.createIndex({ "username": 1 }, { unique: true })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment