Skip to content

Commit f0cce3b

Browse files
committed
Fix: filter query usage
1 parent 05bfc7c commit f0cce3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/plugins/filter-query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func main() {
2323
})
2424

2525
app.Get("/api/v1/witchers", func(ctx *fiber.Ctx) error {
26-
witchers := WitcherModel.Find(ctx.Locals("filterQuery")).Exec() // It is assumed that WitcherModel is an Elemental model, though this works even if used with the standard MongoDB driver
26+
witchers := WitcherModel.Find((ctx.Locals("filterQuery")).(filter_query.FilterQueryResult).Filters).Exec() // It is assumed that WitcherModel is an Elemental model, though this works even if used with the standard MongoDB driver
2727
return ctx.JSON(witchers)
2828
})
2929

0 commit comments

Comments
 (0)