简体   繁体   中英

How to provide null values in TDEs in MarkLogic?

I'm creating a JavaScript template in JSON for my document. One of the fields is null. The nullable:true is not working on it.

I gave the nullable as true so it accepts the value only when it is "" and not as null. The document insertion fails if I have the TDE in my schemas.

               {
                    "name": "description",
                    "scalarType": "string",
                    "val": "/envelope/description",
                    "nullable": true
                }

I want the document to be inserted and this particular field to be read as void that the nullable property is doing in "". What changes can I do for the same?

I added this:

"invalidValues":"ignore"

This solved the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM