Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Created September 9, 2020 14:02
Show Gist options
  • Save aniruddha27/3ccf0b1fd8d4df2b6191016bbc84056b to your computer and use it in GitHub Desktop.
Save aniruddha27/3ccf0b1fd8d4df2b6191016bbc84056b to your computer and use it in GitHub Desktop.
# Create multikey index
db.restaurants.create_index('grades.grade',
name='grade')
# List indexes
pprint(db.restaurants.index_information())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment