From 4af7d2f6ff8b38365c97a89c295710f5ed3266f5 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Mon, 30 Mar 2026 17:56:42 +0200 Subject: Manage insertion for multireferences fields --- lib/query/query.mli | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/query/query.mli') diff --git a/lib/query/query.mli b/lib/query/query.mli index 1a26383..9dcef17 100644 --- a/lib/query/query.mli +++ b/lib/query/query.mli @@ -6,14 +6,15 @@ val insert : int64 Lwt.t (** Insert a new element and return the ID. - [insert content ~parent provider] will create the content in the database. + [insert db content ~parent provider] will create the content in the + database. The parent is required if the content is a subcontent. Not providing the - parameter is a structural error in the database. + parameter will raise the error [TypeMismatch]. For each field in the content, the function [provider] will be called with the name for this property. The value returned shall match the expected type - for this property, the execption [TypeMismatch] is raised otherwise. + for this property, the exception [TypeMismatch] is raised otherwise. This is a low-level function: there is no representation for the content itself, and no functionnals controls are realized. *) -- cgit v1.2.3