{"action":"created","issue":{"url":"https://api.github.com/repos/Vinelab/NeoEloquent/issues/50","labels_url":"https://api.github.com/repos/Vinelab/NeoEloquent/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/Vinelab/NeoEloquent/issues/50/comments","events_url":"https://api.github.com/repos/Vinelab/NeoEloquent/issues/50/events","html_url":"https://github.com/Vinelab/NeoEloquent/issues/50","id":58210580,"number":50,"title":"Can I get executable query ","user":{"login":"ShindeSatish","id":6457428,"avatar_url":"https://avatars.githubusercontent.com/u/6457428?v=3","gravatar_id":"","url":"https://api.github.com/users/ShindeSatish","html_url":"https://github.com/ShindeSatish","followers_url":"https://api.github.com/users/ShindeSatish/followers","following_url":"https://api.github.com/users/ShindeSatish/following{/other_user}","gists_url":"https://api.github.com/users/ShindeSatish/gists{/gist_id}","starred_url":"https://api.github.com/users/ShindeSatish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShindeSatish/subscriptions","organizations_url":"https://api.github.com/users/ShindeSatish/orgs","repos_url":"https://api.github.com/users/ShindeSatish/repos","events_url":"https://api.github.com/users/ShindeSatish/events{/privacy}","received_events_url":"https://api.github.com/users/ShindeSatish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-19T13:54:00Z","updated_at":"2015-02-19T16:02:27Z","closed_at":null,"body":"I want to check The Cypher performed query by this statement.\r\n\r\nFor example- \r\n$user = User::find(1);\r\n$post = new Post(['title' => 'The Title', 'body' => 'Hot Body']);\r\n$user->posts()->save($post);\r\n\r\nFor this statement following Cypher query will get generated \r\nMATCH (user:`User`)\r\nWHERE id(user) = 1\r\nCREATE (user)-[rel_user_post:POSTED]->(post:`Post` {title: 'The Title', body: 'Hot Body', created_at: '15-05-2014', updated_at: '15-05-2014'})\r\nRETURN rel_user_post;\r\n\r\n\r\n\r\nHow can I get Cypher query performed by the statement.\r\n\r\nThanks\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Vinelab/NeoEloquent/issues/comments/75077946","html_url":"https://github.com/Vinelab/NeoEloquent/issues/50#issuecomment-75077946","issue_url":"https://api.github.com/repos/Vinelab/NeoEloquent/issues/50","id":75077946,"user":{"login":"Mulkave","id":2647333,"avatar_url":"https://avatars.githubusercontent.com/u/2647333?v=3","gravatar_id":"","url":"https://api.github.com/users/Mulkave","html_url":"https://github.com/Mulkave","followers_url":"https://api.github.com/users/Mulkave/followers","following_url":"https://api.github.com/users/Mulkave/following{/other_user}","gists_url":"https://api.github.com/users/Mulkave/gists{/gist_id}","starred_url":"https://api.github.com/users/Mulkave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mulkave/subscriptions","organizations_url":"https://api.github.com/users/Mulkave/orgs","repos_url":"https://api.github.com/users/Mulkave/repos","events_url":"https://api.github.com/users/Mulkave/events{/privacy}","received_events_url":"https://api.github.com/users/Mulkave/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T16:02:27Z","updated_at":"2015-02-19T16:02:27Z","body":"In order to get the full query log you may use the following:\r\n\r\n```php\r\n(new User)->getConnection()->getQueryLog();\r\n```\r\n\r\nWhich will return an array containing all the queries that were run till the moment you call this method.\r\n\r\nOr if you have an instance already you may call `$user->getQueryLog()`"}}