If you look at the XQuery version 
<https://docs.marklogic.com/xdmp:get-request-field>, it returns item()*. This 
accounts for the cases where you've got strings zero, one, or many strings in 
application/x-www-form-urlencoded or binary in multipart/form-data.

We're looking at ways to be more precise with how we document JavaScript types.

Justin

--
Justin Makeig
Director, Product Management
MarkLogic
jmak...@marklogic.com<mailto:jmak...@marklogic.com>

On Aug 26, 2016, at 2:23 AM, Florent Georges 
<li...@fgeorges.org<mailto:li...@fgeorges.org>> wrote:

Hi,

https://docs.marklogic.com/xdmp.getRequestField tells me that the function 
returns "Object?".  But "typeof" on the result of calling it (with a simple 
"param=value" in the URL) tells me "string".

Is that a bug in the documentation?  Or does the notation "Object?" allows for 
a plain string as well?

Regards,

--
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/

_______________________________________________
General mailing list
General@developer.marklogic.com<mailto:General@developer.marklogic.com>
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to