Skip to content

Commit

Permalink
chore: revert unwanted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kmruiz committed Nov 20, 2024
1 parent 9b70edb commit ca09d78
Showing 1 changed file with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,7 @@ public List<Document> findMoviesByYear(String year) {
return client
.getDatabase("sample_mflix")
.getCollection("movies")
.find(
Filters.and(
Filters.eq("f1", year),
Filters.gte("f2", year),
Filters.lte("f3", year),
Filters.not(
Filters.and(
Filters.eq("f4", year),
Filters.eq("f5", year)
)
)
)
)
.find(Filters.eq("year", year))
.into(new ArrayList<>());
}

Expand All @@ -61,7 +49,7 @@ public List<Document> queryMoviesByYear(String year) {
.getDatabase("sample_mflix")
.getCollection("movies")
.aggregate(List.of(Aggregates.match(
Filters.eq("_id", year)
Filters.eq("year", year)
)))
.into(new ArrayList<>());
}
Expand Down

0 comments on commit ca09d78

Please sign in to comment.