{"action":"created","issue":{"url":"https://api.github.com/repos/dmitriid/neo4j-erlang/issues/13","repository_url":"https://api.github.com/repos/dmitriid/neo4j-erlang","labels_url":"https://api.github.com/repos/dmitriid/neo4j-erlang/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/dmitriid/neo4j-erlang/issues/13/comments","events_url":"https://api.github.com/repos/dmitriid/neo4j-erlang/issues/13/events","html_url":"https://github.com/dmitriid/neo4j-erlang/issues/13","id":168491224,"number":13,"title":"Example of Cypher Match Query","user":{"login":"mvbaffa","id":1565670,"avatar_url":"https://avatars.githubusercontent.com/u/1565670?v=3","gravatar_id":"","url":"https://api.github.com/users/mvbaffa","html_url":"https://github.com/mvbaffa","followers_url":"https://api.github.com/users/mvbaffa/followers","following_url":"https://api.github.com/users/mvbaffa/following{/other_user}","gists_url":"https://api.github.com/users/mvbaffa/gists{/gist_id}","starred_url":"https://api.github.com/users/mvbaffa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvbaffa/subscriptions","organizations_url":"https://api.github.com/users/mvbaffa/orgs","repos_url":"https://api.github.com/users/mvbaffa/repos","events_url":"https://api.github.com/users/mvbaffa/events{/privacy}","received_events_url":"https://api.github.com/users/mvbaffa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dmitriid/neo4j-erlang/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dmitriid/neo4j-erlang/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"dmitriid","id":32768,"avatar_url":"https://avatars.githubusercontent.com/u/32768?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitriid","html_url":"https://github.com/dmitriid","followers_url":"https://api.github.com/users/dmitriid/followers","following_url":"https://api.github.com/users/dmitriid/following{/other_user}","gists_url":"https://api.github.com/users/dmitriid/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitriid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitriid/subscriptions","organizations_url":"https://api.github.com/users/dmitriid/orgs","repos_url":"https://api.github.com/users/dmitriid/repos","events_url":"https://api.github.com/users/dmitriid/events{/privacy}","received_events_url":"https://api.github.com/users/dmitriid/received_events","type":"User","site_admin":false},"assignees":[{"login":"dmitriid","id":32768,"avatar_url":"https://avatars.githubusercontent.com/u/32768?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitriid","html_url":"https://github.com/dmitriid","followers_url":"https://api.github.com/users/dmitriid/followers","following_url":"https://api.github.com/users/dmitriid/following{/other_user}","gists_url":"https://api.github.com/users/dmitriid/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitriid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitriid/subscriptions","organizations_url":"https://api.github.com/users/dmitriid/orgs","repos_url":"https://api.github.com/users/dmitriid/repos","events_url":"https://api.github.com/users/dmitriid/events{/privacy}","received_events_url":"https://api.github.com/users/dmitriid/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-07-30T23:01:26Z","updated_at":"2016-08-02T08:54:18Z","closed_at":null,"body":"Hi,\r\n\r\nCan you show an example of a Match query in Cypher and the returned information?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/dmitriid/neo4j-erlang/issues/comments/236844335","html_url":"https://github.com/dmitriid/neo4j-erlang/issues/13#issuecomment-236844335","issue_url":"https://api.github.com/repos/dmitriid/neo4j-erlang/issues/13","id":236844335,"user":{"login":"dmitriid","id":32768,"avatar_url":"https://avatars.githubusercontent.com/u/32768?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitriid","html_url":"https://github.com/dmitriid","followers_url":"https://api.github.com/users/dmitriid/followers","following_url":"https://api.github.com/users/dmitriid/following{/other_user}","gists_url":"https://api.github.com/users/dmitriid/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitriid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitriid/subscriptions","organizations_url":"https://api.github.com/users/dmitriid/orgs","repos_url":"https://api.github.com/users/dmitriid/repos","events_url":"https://api.github.com/users/dmitriid/events{/privacy}","received_events_url":"https://api.github.com/users/dmitriid/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T08:54:18Z","updated_at":"2016-08-02T08:54:18Z","body":"@mvbaffa \r\n\r\nYup, it was a bug :) Check out `0.3.1` with a minor fix.\r\n\r\nNow you should be able to do\r\n\r\n```erlang\r\n> Options = [\r\n   {base_uri, <<\"http://localhost:7474/db/data/\">>},\r\n   {user, <<\"user\">>},\r\n   {password, <<\"password\">>}\r\n].\r\n> Neo = neo4j: connect(Options).\r\n\r\n> %% Assuming the example Movie DB\r\n> neo4j:cypher(Neo, <<\"MATCH (tom {name: \\\"Tom Hanks\\\"}) RETURN tom\">>, []).\r\n\r\n{[{<<\"columns\">>,[<<\"tom\">>]},\r\n  {<<\"data\">>,\r\n   [[{[{<<\"metadata\">>,\r\n        {[{<<\"id\">>,71},{<<\"labels\">>,[<<\"Person\">>]}]}},\r\n       {<<\"data\">>,\r\n        {[{<<\"born\">>,1956},{<<\"name\">>,<<\"Tom Hanks\">>}]}},\r\n       {<<\"paged_traverse\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/paged/traverse/{returnType}{?pageSize,leaseTime}\">>},\r\n       {<<\"outgoing_relationships\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/relationships/out\">>},\r\n       {<<\"outgoing_typed_relationships\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/relationships/out/{-list|&|types}\">>},\r\n       {<<\"create_relationship\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/relationships\">>},\r\n       {<<\"labels\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/labels\">>},\r\n       {<<\"traverse\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/traverse/{returnType}\">>},\r\n       {<<\"extensions\">>,{[]}},\r\n       {<<\"all_relationships\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/relationships/all\">>},\r\n       {<<\"all_typed_relationships\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/relationships/all/{-list|&|types}\">>},\r\n       {<<\"property\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/properties/{key}\">>},\r\n       {<<\"self\">>,<<\"http://localhost:7474/db/data/node/71\">>},\r\n       {<<\"incoming_relationships\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/relationships/in\">>},\r\n       {<<\"properties\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/properties\">>},\r\n       {<<\"incoming_typed_relationships\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/relationships/in/{-list|&|types}\">>}]}]]}]}\r\n\r\n> %% Or with params\r\n> neo4j:cypher(Neo, <<\"MATCH (tom {name: {name}}) RETURN tom\">>, {[{name, <<\"Tom Hanks\">>}]}).\r\n\r\n{[{<<\"columns\">>,[<<\"tom\">>]},\r\n  {<<\"data\">>,\r\n   [[{[{<<\"metadata\">>,\r\n        {[{<<\"id\">>,71},{<<\"labels\">>,[<<\"Person\">>]}]}},\r\n       {<<\"data\">>,\r\n        {[{<<\"born\">>,1956},{<<\"name\">>,<<\"Tom Hanks\">>}]}},\r\n       {<<\"paged_traverse\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/paged/traverse/{returnType}{?pageSize,leaseTime}\">>},\r\n       {<<\"outgoing_relationships\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/relationships/out\">>},\r\n       {<<\"outgoing_typed_relationships\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/relationships/out/{-list|&|types}\">>},\r\n       {<<\"create_relationship\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/relationships\">>},\r\n       {<<\"labels\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/labels\">>},\r\n       {<<\"traverse\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/traverse/{returnType}\">>},\r\n       {<<\"extensions\">>,{[]}},\r\n       {<<\"all_relationships\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/relationships/all\">>},\r\n       {<<\"all_typed_relationships\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/relationships/all/{-list|&|types}\">>},\r\n       {<<\"property\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/properties/{key}\">>},\r\n       {<<\"self\">>,<<\"http://localhost:7474/db/data/node/71\">>},\r\n       {<<\"incoming_relationships\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/relationships/in\">>},\r\n       {<<\"properties\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/properties\">>},\r\n       {<<\"incoming_typed_relationships\">>,\r\n        <<\"http://localhost:7474/db/data/node/71/relationships/in/{-list|&|types}\">>}]}]]}]}\r\n```"}}
{"actor":{"display_login":"dmitriid"}}