From de3d318ae94fe0565c5a5096789be19e3542c4ee Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Thu, 20 Mar 2025 16:02:48 +0100 Subject: [PATCH] fix: Add path for unwind --- .../twomartens/timetable/model/repository/StationRepository.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module-model/src/main/kotlin/de/twomartens/timetable/model/repository/StationRepository.kt b/module-model/src/main/kotlin/de/twomartens/timetable/model/repository/StationRepository.kt index 1683f55..e4a7700 100644 --- a/module-model/src/main/kotlin/de/twomartens/timetable/model/repository/StationRepository.kt +++ b/module-model/src/main/kotlin/de/twomartens/timetable/model/repository/StationRepository.kt @@ -14,7 +14,7 @@ interface StationRepository : MongoRepository { "{\$search: { index: \"stations\", returnStoredSource: true, compound: {must: [{phrase: {query: ?0, path: \"countryCode\"}},{autocomplete: {query: ?1,path: \"name\",tokenOrder: \"sequential\"}}]}}}", "{\$limit: 10}", "{\$lookup: { from: \"station\", localField: \"_id\", foreignField: \"_id\", as: \"document\" }}", - "{\$unwind: \"\$document\"}", + "{\$unwind: { path: \"\$document\"}}", "{\$replaceWith: \"\$document\"}" ]) fun findAllByCountryCodeAndNameContainingIgnoreCase(countryCode: String, name: String): List