We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 561fca1 commit 24d242dCopy full SHA for 24d242d
src/templates/playgroundCreateIndexTemplate.ts
@@ -5,10 +5,8 @@ const template = `// MongoDB Playground
5
use('CURRENT_DATABASE');
6
7
// Create a new index in the collection.
8
-// 'ensureIndex' checks to see if the index already exists
9
-// before creating it, to avoid duplicates.
10
db.getCollection('CURRENT_COLLECTION')
11
- .ensureIndex(
+ .createIndex(
12
{
13
/*
14
* Keys
0 commit comments