Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hi team,
I am migrating an app from Neo4J and running into a pickle.
I have fields for fname and lname (name parts) that are mixed case.
I'd like to reset those fields to be lowercase.
I use the following Cypher:
MATCH (p:Person) SET p.fname = toLower(p.fname)
This does not set the lowercase on the fname field as expected.
But... If I were to set it to a static value, it does work.
MATCH (p:Person) SET p.fname = 'Bill'
Can you help me figure this out?

Thanks,
Jim

You must be logged in to vote

Replies: 1 comment

Comment options

Hi @UFMurphy,
Trying to recreate the issue:

127.0.0.1:6379> GRAPH.QUERY g "create (:A {v:'ABC'})"
1) 1) "Labels added: 1"
   2) "Nodes created: 1"
   3) "Properties set: 1"
   4) "Cached execution: 0"
   5) "Query internal execution time: 0.690751 milliseconds"

127.0.0.1:6379> GRAPH.QUERY g "match (a:A) return a"
1) 1) "a"
2) 1) 1) 1) 1) "id"
            2) (integer) 0
         2) 1) "labels"
            2) 1) "A"
         3) 1) "properties"
            2) 1) 1) "v"
                  2) "ABC"
3) 1) "Cached execution: 0"
   2) "Query internal execution time: 0.578708 milliseconds"

127.0.0.1:6379> GRAPH.QUERY g "match (a:A) set a.v = tolower(a.v) return a"
1) 1) "a"
2) 1) 1) 1) 1) "id"
            2) (integer) 0
         2) 1) "labels"
            2) 1) "A"
         3) 1) "properties"
            2) 1) 1) "v"
                  2) "abc"
3) 1) "Properties set: 1"
   2) "Properties removed: 1"
   3) "Cached execution: 0"
   4) "Query internal execution time: 0.682334 milliseconds"

Am I missing something?

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.