Skip to content

Instantly share code, notes, and snippets.

@ovaillancourt
Created April 3, 2012 13:09
Show Gist options
  • Save ovaillancourt/2291867 to your computer and use it in GitHub Desktop.
Save ovaillancourt/2291867 to your computer and use it in GitHub Desktop.
getting indexes in mongodb shell.
use <databasename>
db.<collectionname>.getIndexKeys()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment