summaryrefslogtreecommitdiff
path: root/lib/query/update.ml
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2026-11-22 13:58:16 +0100
committerSébastien Dailly <sebastien@dailly.me>2026-11-22 13:58:16 +0100
commit056fcabaeec238a7aa927df39a90acea028b1aa0 (patch)
tree3246359561eb2375e85da4537e05a083a1348467 /lib/query/update.ml
parentbc78bea63b7c75e8a9d222dc86fb75ed293a2242 (diff)
Added an option for loading a value content without the multivaluated fields (allow single query)main
Diffstat (limited to 'lib/query/update.ml')
-rw-r--r--lib/query/update.ml10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/query/update.ml b/lib/query/update.ml
index 9bd1f2b..515bf2e 100644
--- a/lib/query/update.ml
+++ b/lib/query/update.ml
@@ -181,13 +181,9 @@ let q :
match d with
| Model.Data.None -> acc
| Model.Data.V (t, seq) -> (
- match
- ( Model.Types.eq content_type t,
- Model.Types.eq_ocaml content_type t )
- with
- | Some Type.Equal, Some Type.Equal ->
- (fields, (name, t, seq) :: references)
- | _ -> raise Encoder.TypeMismatch))
+ match Model.Types.eq content_type t with
+ | Some Type.Equal -> (fields, (name, t, seq) :: references)
+ | None -> raise Encoder.TypeMismatch))
| _ -> (
match d with
| Model.Data.None -> acc