From 31ae4c859b0001ef581a15a9b546939b326e0ee3 Mon Sep 17 00:00:00 2001 From: Amitai Burstein Date: Sun, 23 Jun 2024 22:00:42 +0300 Subject: [PATCH] Update docs for `queryUnionList` and expose func (#1977) * Update docs for `queryUnionList` * Update QueryBuilder.hs --- IHP/QueryBuilder.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IHP/QueryBuilder.hs b/IHP/QueryBuilder.hs index 81bd9c7d5..fd3c8d093 100644 --- a/IHP/QueryBuilder.hs +++ b/IHP/QueryBuilder.hs @@ -18,6 +18,7 @@ module IHP.QueryBuilder , limit , offset , queryUnion +, queryUnionList , queryOr , DefaultScope (..) , filterWhere @@ -1041,7 +1042,7 @@ queryUnion firstQueryBuilderProvider secondQueryBuilderProvider = NoJoinQueryBui -- > |> filterWhere (#projectType, projectType) -- > |> filterWhere (#participants, participants) -- > --- > theQuery = queryOrList (map valuePairToCondition values) +-- > theQuery = queryUnionList (map valuePairToCondition values) -- > -- > projects <- fetch theQuery -- > render IndexView { .. }