We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c39fdfa commit db5daefCopy full SHA for db5daef
phpcr-shell/querying.rst
@@ -196,13 +196,13 @@ Set the value of ``a.title`` to the value of the property :
196
197
.. code-block:: bash
198
199
- PHPCRSH> UPDATE [nt:unstructured] AS a SET a.title = expr('row.getNode().getPropertyValue("some_property")')
+ PHPCRSH> UPDATE [nt:unstructured] AS a SET a.title = expr('row.getNode().getPropertyValueWithDefault("some_property", null)')
200
201
Increment the value of a property:
202
203
204
205
- PHPCRSH> UPDATE [nt:unstructured] AS a SET a.count = expr('row.getNode().getPropertyValue("count") + 1')
+ PHPCRSH> UPDATE [nt:unstructured] AS a SET a.count = expr('row.getNode().getPropertyValueWithDefault("count", 0) + 1')
206
207
Set the value of ``a.title`` from the value of a joined node:
208
0 commit comments