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 c3fd9fd commit db3b40fCopy full SHA for db3b40f
driver/src/examples/primer/IndexesPrimer.java
@@ -41,7 +41,7 @@ public void singleFieldIndex() {
41
public void createCompoundIndex() {
42
// @begin: create-compound-index
43
// @code: start
44
- db.getCollection("restaurants").createIndex(new Document("cuisine", 1).append("address.zipcode", 1));
+ db.getCollection("restaurants").createIndex(new Document("cuisine", 1).append("address.zipcode", -1));
45
// @code: end
46
47
// @post: The method does not return a result.
0 commit comments