From 056fcabaeec238a7aa927df39a90acea028b1aa0 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sun, 22 Nov 2026 13:58:16 +0100 Subject: Added an option for loading a value content without the multivaluated fields (allow single query) --- lib/query/update.ml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'lib/query/update.ml') 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 -- cgit v1.2.3