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 141c503 commit 4d21d92Copy full SHA for 4d21d92
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