---
title: "Discussion on \"Mongoose - Add a unique index  on an existing collection\" | Hashnode"
description: "Discussion on \"Mongoose - Add a unique index  on an existing collection\". The \"sparse\" option"
url: "https://hashnode.com/posts/mongoose-add-a-unique-index-on-an-existing-collection/6640d61fe2175c0f9a9ccc43"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Mongoose - Add a unique index on an existing collection](https://blog.etheve.eu/mongoose-add-a-unique-index-on-an-existing-collection?utm_source=hashnode&utm_medium=feed)

The "sparse" option

May 8, 2024 · 1 min read · blog.etheve.eu  
Read the article

-   [#mongoose](https://hashnode.com/tag/mongoose)
-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[Guileas](https://hashnode.com/@Guileas)

@Guileas

  
[View profile](https://hashnode.com/@Guileas)

Non stop learning

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
