BTW, I love the simplicity of something like this:
neo4j-sh (?)$ MATCH (ndt:NRLS_DATA_TYPE { code : 'IN05_lvl1' })
> MERGE (ic:INCIDENT_CATEGORY { category_level_01 : 'FOOBAR' })-[r:
HAS_NRLS_DATA_TYPE]->(ndt)
> RETURN ic, r;
+-----------------------------------------------------------------------------+
| ic | r
|
+-----------------------------------------------------------------------------+
| Node[2121668]{category_level_01:"FOOBAR"} | :HAS_NRLS_DATA_TYPE[16880045
]{} |
+-----------------------------------------------------------------------------+
1 row
Nodes created: 1
Relationships created: 1
Properties set: 1
On Wednesday, January 1, 2014 6:36:04 PM UTC, Michael Hunger wrote:
>
> No worries, it's still early in the New Year :)
>
> But you definitely want to write a blog post about what you're doing with
> Neo4j? Right?
>
> Happy New Year
>
> Michael
>
> Am 01.01.2014 um 19:33 schrieb JDS <[email protected] <javascript:>>:
>
> Ugh *shame*
>
> Thanks Mike
>
> On Wednesday, January 1, 2014 6:32:16 PM UTC, Michael Hunger wrote:
>>
>> Typo:
>>
>> In query #4 you use "NRLS_DATA_TYPE" in the previous ones you use "
>> NLRS_DATA_TYPE"
>>
>> N_RL_S vs. N_LR_S
>>
>> HTH
>>
>> Michael
>>
>> Am 01.01.2014 um 19:26 schrieb JDS <[email protected]>:
>>
>> Maybe I'm wrong but I thought that all 3 of the top queries would return
>> data based on the data returned by 1st and 4th query so I'm a little
>> confused. Server is 2.0.0 enterprise stable.
>>
>> neo4j-sh (?)$ START n=node(*) WHERE HAS (n.code) AND n.code = 'IN05_lvl1'
>> RETURN n.code;
>> +-------------+
>> | n.code |
>> +-------------+
>> | "IN05_lvl1" |
>> +-------------+
>> 1 row
>> 102405 ms
>> neo4j-sh (?)$ MATCH (ndt:NLRS_DATA_TYPE) WHERE ndt.code = 'IN05_lvl1'
>> RETURN ndt.code;
>> +----------+
>> | ndt.code |
>> +----------+
>> +----------+
>> 0 row
>> 31 ms
>> neo4j-sh (?)$ MATCH (ndt:NLRS_DATA_TYPE { code : 'IN05_lvl1' }) RETURN
>> ndt.code;
>> +----------+
>> | ndt.code |
>> +----------+
>> +----------+
>> 0 row
>> 20 ms
>> neo4j-sh (?)$ MATCH (ndt:NRLS_DATA_TYPE) RETURN ndt.code;
>>
>> +-------------------+
>> | ndt.code |
>> +-------------------+
>> | "RP07" |
>> | "IN07" |
>> | "Age_at_Incident" |
>> | "ST01_LVL1" |
>> | "PD09" |
>> | "PD05_lvl1" |
>> | "IN05_lvl1" |
>> | "IN03_lvl1" |
>> | "IN07_01MMYY" |
>> | "PD11" |
>> | "IN02_A_01" |
>> | "IN01" |
>> | "PD02" |
>> +-------------------+
>> 13 rows
>> 113 ms
>> neo4j-sh (?)$ MATCH (ndt:NLRS_DATA_TYPE { code : "IN05_lvl1" }) RETURN
>> ndt.code;
>>
>>
>>
>> --
>> 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.
>>
>>
>>
> --
> 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] <javascript:>.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
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.