{ "ns" : "http://zorba.io/modules/store/dynamic/collections/dml", "description" : " This modules provides a set of functions to modify a collection\n and retrieve the items contained in a particular collection.\n
\n Please refer to our documentation for\n more information\n about the lifecycle management and the manipulation of such collections.\n", "sees" : [ "insert-after()
except it\n immediately applies the resulting pending updates and returns the items that\n have been inserted.\n", "summary" : "
This function does the same thing as insert-after() except it\n immediately applies the resulting pending updates and returns the items that\n have been inserted.
", "annotation_str" : " %an:sequential", "annotations" : [ { "prefix" : "an", "ns" : "http://zorba.io/annotations", "name" : "sequential", "value" : "" } ], "updating" : false, "parameters" : [ { "name" : "name", "type" : "xs:QName", "occurence" : null, "description" : "$content
will be inserted.$target
is not in the collection.insert-before()
except it\n immediately applies the resulting pending updates and returns the items that\n have been inserted.\n", "summary" : "This function does the same thing as insert-before() except it\n immediately applies the resulting pending updates and returns the items that\n have been inserted.
", "annotation_str" : " %an:sequential", "annotations" : [ { "prefix" : "an", "ns" : "http://zorba.io/annotations", "name" : "sequential", "value" : "" } ], "updating" : false, "parameters" : [ { "name" : "name", "type" : "xs:QName", "occurence" : null, "description" : "$content
will be inserted.insert-first()
except it\n immediately applies the resulting pending updates and returns the items that\n have been inserted.\n", "summary" : "This function does the same thing as insert-first() except it\n immediately applies the resulting pending updates and returns the items that\n have been inserted.
", "annotation_str" : " %an:sequential", "annotations" : [ { "prefix" : "an", "ns" : "http://zorba.io/annotations", "name" : "sequential", "value" : "" } ], "updating" : false, "parameters" : [ { "name" : "name", "type" : "xs:QName", "occurence" : null, "description" : "insert-last()
except it\n immediately applies the resulting pending updates and returns the items that\n have been inserted.\n", "summary" : "This function does the same thing as insert-last() except it\n immediately applies the resulting pending updates and returns the items that\n have been inserted.
", "annotation_str" : " %an:sequential", "annotations" : [ { "prefix" : "an", "ns" : "http://zorba.io/annotations", "name" : "sequential", "value" : "" } ], "updating" : false, "parameters" : [ { "name" : "name", "type" : "xs:QName", "occurence" : null, "description" : "Gets the name of the collection the given item (node or JSON item) belongs\n to.
", "annotation_str" : "", "annotations" : [ ], "updating" : false, "parameters" : [ { "name" : "item", "type" : "item()", "occurence" : null, "description" : "$item
belongs." }, "errors" : [ "$item
does not belong to a collection.Gets the sequence of nodes or JSON items from a collection.
", "annotation_str" : "", "annotations" : [ ], "updating" : false, "parameters" : [ { "name" : "name", "type" : "xs:QName", "occurence" : null, "description" : "Gets the sequence of items (nodes or JSON items) from a collection.
", "annotation_str" : "", "annotations" : [ ], "updating" : false, "parameters" : [ { "name" : "name", "type" : "xs:QName", "occurence" : null, "description" : "$start
and $skip
can be used to\n skip over items at the beginning of the collection.\n If both are given, both are applied: first, $start
to skip to\n that item and then $skip
to skip that additional number of\n items.\n", "summary" : "Gets the sequence of items (nodes or JSON items) from a collection.
", "annotation_str" : "", "annotations" : [ ], "updating" : false, "parameters" : [ { "name" : "name", "type" : "xs:QName", "occurence" : null, "description" : "np:node-position
function.$start
does not reference a node from the collection $name
.Deletes the first item from a collection.
", "annotation_str" : "", "annotations" : [ ], "updating" : true, "parameters" : [ { "name" : "name", "type" : "xs:QName", "occurence" : null, "description" : "Deletes the first N items from a collection.
", "annotation_str" : "", "annotations" : [ ], "updating" : true, "parameters" : [ { "name" : "name", "type" : "xs:QName", "occurence" : null, "description" : "$number
items.Deletes the last item from a collection.
", "annotation_str" : "", "annotations" : [ ], "updating" : true, "parameters" : [ { "name" : "name", "type" : "xs:QName", "occurence" : null, "description" : "Deletes the last N items from a collection.
", "annotation_str" : "", "annotations" : [ ], "updating" : true, "parameters" : [ { "name" : "name", "type" : "xs:QName", "occurence" : null, "description" : "$number
items.Deletes items (nodes or JSON items) from a collection.
", "annotation_str" : "", "annotations" : [ ], "updating" : true, "parameters" : [ { "name" : "items", "type" : "item()", "occurence" : null, "description" : "$items
is not a member of a collection or not all items belong to the same collection.Edits the first supplied item so as to make it look exactly like a copy of\n the second supplied item while retaining its original identity.
", "annotation_str" : "", "annotations" : [ ], "updating" : true, "parameters" : [ { "name" : "target", "type" : "item()", "occurence" : null, "description" : "$target
belongs is not available.$target
belongs is append-only, const, or queue.$target
is not a member of a collection.$target
is not a root.$target
cannot be updated to match the content (for example, because the target is a node and the content is an object).Gets the position of the given item (node or JSON item) within its\n collection.
", "annotation_str" : "", "annotations" : [ ], "updating" : false, "parameters" : [ { "name" : "item", "type" : "item()", "occurence" : null, "description" : "$item
in its collection." }, "errors" : [ "$item
does not belong to a collection.Inserts copies of the given items (nodes or JSON items)\n into a collection at the position directly following the given target item.
", "annotation_str" : "", "annotations" : [ ], "updating" : true, "parameters" : [ { "name" : "name", "type" : "xs:QName", "occurence" : null, "description" : "$target
is not in the collection.Inserts copies of the given items (nodes or JSON items)\n into a collection at the position directly preceding the given target item.
", "annotation_str" : "", "annotations" : [ ], "updating" : true, "parameters" : [ { "name" : "name", "type" : "xs:QName", "occurence" : null, "description" : "$content
will be inserted.$target
is not in the collection.Inserts copies of the given items (nodes or JSON items)\n at the beginning of the collection.
", "annotation_str" : "", "annotations" : [ ], "updating" : true, "parameters" : [ { "name" : "name", "type" : "xs:QName", "occurence" : null, "description" : "Inserts copies of the given items (nodes or JSON items)\n at the end of the collection.
", "annotation_str" : "", "annotations" : [ ], "updating" : true, "parameters" : [ { "name" : "name", "type" : "xs:QName", "occurence" : null, "description" : "Deletes the entire contents of a collection.
", "annotation_str" : "", "annotations" : [ ], "updating" : true, "parameters" : [ { "name" : "name", "type" : "xs:QName", "occurence" : null, "description" : "