neo4jphp icon indicating copy to clipboard operation
neo4jphp copied to clipboard

getNodesForLabel not working with propertyName ,value parameters

Open sarathsprakash opened this issue 10 years ago • 2 comments

I have used the below code to get all the node with label 'user ' and property 'id', and value '12345',but it returns null, But when I used only label without property, it worked fine.

getNodesForLabel($label,'id','12345'); $startNodes->count(); ?>

sarathsprakash avatar Jun 27 '14 18:06 sarathsprakash

It seems like 'id' would be a unique property, so I'm not sure why multiple nodes would have it..

Still, have you tried dropping the single quotes so it's just treated as an integer?

jgillmanjr avatar Jun 30 '14 17:06 jgillmanjr

Tested on my local env, I can't reproduce this issue, working with id property and the value in quotes.

ikwattro avatar Aug 05 '14 20:08 ikwattro