I am a Database guy but agnostic to Java/.NET and rely on query language
(Cypher in this case). I am trying to create some nodes and add
relationship between them. I want to assign my own id value to the nodes,
however I don't know how to do that because neo4j automatically assigns id
value to all nodes. For example these are my create node statements where I
am trying to specify my own identifier:
CREATE (`833`:CATEGORY {PartnerCode:"XXXXX002507",
MerchantCode:"XXXX_0001", Name:'ABCD', Leaf:1 ,CategoryCode:"100-175858"})
CREATE
(`835`:CATEGORY {PartnerCode:"ZZZZZ0002507", MerchantCode:"ZZZZ_0001",
Name:'DEFT', Leaf:1 ,CategoryCode:"100-175857"})
When I browse these, I don't see 833 and 835 as their identifiers, rather I
see auto-generated identifiers. Why? Is there a way I can enforce my own Id
values ?
Secondly, how to assign relationships between these 2 Nodes ? For instance
I want to make '833' :PARENT_OF '835'
Thanks
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.