Skip to content

Commit 852dad0

Browse files
needs to sort on imdb.rating rather than rating
1 parent b4828b8 commit 852dad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/includes/usage-examples/code-snippets/FindOne.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static void main( String[] args ) {
3030

3131
Document doc = collection.find(eq("title", "The Room"))
3232
.projection(projectionFields)
33-
.sort(Sorts.descending("rating"))
33+
.sort(Sorts.descending("imdb.rating"))
3434
.first();
3535

3636
if (doc == null) {

0 commit comments

Comments
 (0)