# where are we? pwd Current is (0) (0) # On the current node, set the key "name" to value "Jon" set name "Jon" # send a cypher query start n=(0) return n +----------------------+ | n | +----------------------+ | Node[0]{name->"Jon"} | +----------------------+ 1 rows, 42 ms # make an incoming relationship of type LIKES, create the end node with the node properties specified. mkrel -c -d i -t LIKES --np "{'app':'foobar'}" # where are we? ls *name =[Jon] (me) <-[LIKES]-- (1) # change to the newly created node cd 1 # list relationships, including relationshship id ls -avr (me) --[LIKES,0]-> (0) # create one more KNOWS relationship and the end node mkrel -c -d i -t KNOWS --np "{'name':'Bob'}" # print current history stack pwd Current is (1) (0)-->(1) # verbose list relationships ls -avr (me) --[LIKES,0]-> (0) (me) <-[KNOWS,1]-- (2)
Copyright © 2011 Neo Technology