Skip to content

Fix typo in expr example #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 5, 2015
Merged

Fix typo in expr example #22

merged 2 commits into from
May 5, 2015

Conversation

dbu
Copy link
Member

@dbu dbu commented May 5, 2015

No description provided.

@@ -196,7 +196,7 @@ Set the value of ``a.title`` to the value of the property :

.. code-block:: bash

PHPCRSH> UPDATE [nt:unstructured] AS a SET a.title = expr('row.getNode().getProperty('some_property')')
PHPCRSH> UPDATE [nt:unstructured] AS a SET a.title = expr('row.getNode().getPropertyValue("some_property")')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs double quotes for sure. does it need to be getPropery or would getPropertyValue (as below) be the correct thing?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think in this case getPropertyValueWithDefault("some_property", null) would probably be best.

@dbu
Copy link
Member Author

dbu commented May 5, 2015

updated

dantleech added a commit that referenced this pull request May 5, 2015
@dantleech dantleech merged commit be5df22 into master May 5, 2015
@dantleech
Copy link
Member

cheers

@dbu dbu deleted the fix-query-doc branch June 15, 2023 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants