## item Server Expression

A server expression that returns a value of (or implicitly castable to) the item server type. For all server types, see the Server Expression Type Hierarchy.

### Parameter Of

Server Return Type | Server Function | Java Doc | Server Doc
--- | --- | --- | ---
xs:boolean | fn:boolean(item arg*) | java | server
xs:integer | fn:count(item arg*, xs:double maximum?) | java | server
xs:boolean? | fn:deep-equal(item parameter1*, item parameter2*, xs:string collation) | java | server
xs:boolean | fn:empty(item arg*) | java | server
xs:boolean | fn:exists(item arg*) | java | server
item? | fn:head(item seq*) | java | server
item* | fn:insert-before(item target*, xs:integer position, item inserts*) | java | server
xs:boolean | fn:not(item arg*) | java | server
item* | fn:remove(item target*, xs:integer position) | java | server
item* | fn:reverse(item target*) | java | server
xs:string? | fn:string(item arg?) | java | server
item* | fn:subsequence(item sourceSeq*, xs:numeric startingLoc, xs:numeric length) | java | server
item* | fn:tail(item seq*) | java | server
item* | fn:unordered(item sourceSeq*) | java | server
json:array | json:to-array(item items*, xs:numeric limit?, item zero?) | java | server
map:map | map:entry(xs:string key, item value*) | java | server
item* | sem:coalesce(item parameter1*) | java | server
item* | sem:if(xs:boolean condition, item then*, item else*) | java | server
item? | sql:dateadd(xs:string datepart?, xs:int number?, item date?) | java | server
xs:integer? | sql:datediff(xs:string datepart?, item startdate?, item enddate?) | java | server
xs:integer? | sql:datepart(xs:string datepart, item date) | java | server
xs:integer? | sql:day(item arg?) | java | server
xs:string? | sql:dayname(item arg?) | java | server
xs:integer? | sql:hours(item arg?) | java | server
xs:anyAtomicType | sql:ifnull(item expr1*, item expr2*) | java | server
xs:integer? | sql:minutes(item arg?) | java | server
xs:integer? | sql:month(item arg?) | java | server
xs:string? | sql:monthname(item arg?) | java | server
xs:anyAtomicType | sql:nullif(item expr1*, item expr2*) | java | server
xs:integer? | sql:quarter(item arg?) | java | server
xs:string | sql:repeat(item str*, xs:numeric n) | java | server
xs:decimal? | sql:seconds(item arg?) | java | server
item? | sql:timestampadd(xs:string dateTimeType?, xs:int value?, item timestamp?) | java | server
xs:integer? | sql:timestampdiff(xs:string dateTimeType?, item timestamp1?, item timestamp2?) | java | server
xs:integer? | sql:week(item arg?) | java | server
xs:integer? | sql:weekday(item arg1?) | java
xs:integer? | sql:year(item arg?) | java | server
xs:integer? | sql:yearday(item arg?) | java | server
xs:boolean | xdmp:castable-as(xs:string namespace-uri, xs:string local-name, item item?) | java | server
xs:string | xdmp:describe(item item*, xs:unsignedInt max-sequence-length?, xs:unsignedInt max-item-length?) | java | server
xs:string | xdmp:hmac-md5(item secretkey, item message, xs:string encoding) | java | server
xs:string | xdmp:hmac-sha1(item secretkey, item message, xs:string encoding) | java | server
xs:string | xdmp:hmac-sha256(item secretkey, item message, xs:string encoding) | java | server
xs:string | xdmp:hmac-sha512(item secretkey, item message, xs:string encoding) | java | server
xs:string | xdmp:md5(item data, xs:string encoding) | java | server
xs:string | xdmp:sha1(item data, xs:string encoding) | java | server
xs:string | xdmp:sha256(item data, xs:string encoding) | java | server
xs:string | xdmp:sha384(item data, xs:string encoding) | java | server
xs:string | xdmp:sha512(item data, xs:string encoding) | java | server
node | xdmp:to-json(item item*) | java | server

### Return Value Of

Server Return Type | Server Function | Java Doc | Server Doc
--- | --- | --- | ---
item? | fn:head(item seq*) | java | server
item* | fn:insert-before(item target*, xs:integer position, item inserts*) | java | server
item* | fn:remove(item target*, xs:integer position) | java | server
item* | fn:reverse(item target*) | java | server
item* | fn:subsequence(item sourceSeq*, xs:numeric startingLoc, xs:numeric length) | java | server
item* | fn:tail(item seq*) | java | server
item* | fn:unordered(item sourceSeq*) | java | server
item* | json:array-values(json:array array, xs:boolean flatten?) | java | server
item* | map:get(map:map map, xs:string key) | java | server
item+ | math:frexp(xs:double x) | java | server
item* | sem:coalesce(item parameter1*) | java | server
item* | sem:if(xs:boolean condition, item then*, item else*) | java | server
item? | sql:dateadd(xs:string datepart?, xs:int number?, item date?) | java | server
item? | sql:timestampadd(xs:string dateTimeType?, xs:int value?, item timestamp?) | java | server
item* | xdmp:from-json(node arg) | java | server
item* | xdmp:node-permissions(node node, xs:string output-kind) | java | server