Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
01-26-2020 07:10 AM
Hello,
I try to match some nodes with the following statement:
MATCH (e:event)
WHERE e.process_PID = "433"
RETURN e.process_PID
LIMIT 10
RESPONSE:
(no changes, no records)
If I try this WITHOUT the where statement:
MATCH (e:event)
RETURN e.process_PID
LIMIT 10
RESPONSE:
╒═══════════════╕
│"e.process_PID"│
╞═══════════════╡
│433 │
├───────────────┤
│743 │
├───────────────┤
│916 │
├───────────────┤
│935 │
├───────────────┤
│1062 │
├───────────────┤
│1081 │
├───────────────┤
│1093 │
├───────────────┤
│1145 │
├───────────────┤
│1160 │
├───────────────┤
│1177 │
└───────────────┘
How could I use the where statement to find the 433 e.process_PID for example?
Greetings Sebastian
01-26-2020 07:33 AM
You might have stored the value as a number and not as a string. Try this instead:
MATCH (e:event)
WHERE e.process_PID = 433
RETURN e.process_PID
LIMIT 10
01-27-2020 03:46 AM
Hi @schnur.sebastian, Solution by @stefan.armbruster is good and please remember about docs: https://neo4j.com/docs/cypher-manual/current/clauses/where/ . Your problems solutions was probably there.
01-31-2020 08:43 AM
Thx for the hint! I try to find more about the data types in Neo4j via cypher - is there another good site or link in the docs? I tried: https://neo4j.com/docs/cypher-manual/current/syntax/values/
but there was no hint for the differences between string and integer.
01-31-2020 01:31 PM
The apoc library has apoc.meta.type(value)
to return the type of a given value.
All the sessions of the conference are now available online