Skip to content

Instantly share code, notes, and snippets.

@tuanlc
Created July 30, 2021 04:18
Show Gist options
  • Select an option

  • Save tuanlc/ec85f5ffbf64773f94103bdcc2f9d659 to your computer and use it in GitHub Desktop.

Select an option

Save tuanlc/ec85f5ffbf64773f94103bdcc2f9d659 to your computer and use it in GitHub Desktop.
> db.companies.getIndexes()
[
        {
                "v" : 2,
                "key" : {
                        "_id" : 1
                },
                "name" : "_id_",
                "ns" : "project-name.companies"
        },
        {
                "v" : 2,
                "unique" : true,
                "key" : {
                        "code" : 1
                },
                "name" : "code_1",
                "ns" : "project-name.companies",
                "background" : true
        }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment