-
Notifications
You must be signed in to change notification settings - Fork 69
RNeo4j handling NA properties #39
Comments
Does a
So you'd want to do it like this: n = getOrCreateNode(g, "User", user_id_hash="john")
n = updateProp(n, age=24, address="123") You also can't set properties to NULL or NA in Neo4j. You also wouldn't want to set it to an empty string; you just don't set it at all. |
No there was no User node with user_id_hash already present. |
Oh, I see. In that case I'd say this is a bug. I'll investigate soon. |
Hey Nicole, This results in an error:
|
@JohnAbe I'm not able to reproduce your error. When I do: neo4j = startGraph("http://localhost:7474/db/data/")
clear(neo4j, input=F)
addConstraint(neo4j, "User", "user_id_hash")
n = getOrCreateNode(neo4j, "User", user_id_hash="john", age=NA) The node is created.
This is the intended behavior. Any properties set to |
I'm closing this as I'm not able to reproduce the problem. |
Hey, > neo4j = startGraph("http://localhost:7474/db/data/ On 10 October 2015 at 06:36, Nicole White notifications@github.com wrote:
John Abraham |
This is my experience with RNeo4j 1.6.0 and R 3.2.1:
What operating system are you on? And what version of Neo4j are you using? |
Windows 7 Enterprise and Neo4j 2.2.3 On 16 October 2015 at 01:31, Nicole White notifications@github.com wrote:
John Abraham |
I'll grab a copy of 2.2.3 and see if I can reproduce. |
Oh please do not bother if it is a deprecated version. I did not know that On 16 October 2015 at 02:40, Nicole White notifications@github.com wrote:
John Abraham |
It is not deprecated. I will check it out. |
I'm still not able to reproduce.
|
Thanks for checking. > neo4j = startGraph("http://localhost:7474/db/data/ I tried with Neo4j 2.2.6 and it is still giving the above result. Strange On 16 October 2015 at 03:17, Nicole White notifications@github.com wrote:
John Abraham |
Hmm. I suppose I will boot up my Windows machine. Stay tuned! |
Hi Nicole,
Not sure if this is to be discussed in another forum.
For the label "User" with a constraint on field user_id_hash, if we try the following -
Thanks for this package!,
John
The text was updated successfully, but these errors were encountered: