{"action":"opened","issue":{"url":"https://api.github.com/repos/sunjith/loopback-connector-neo4j-graph/issues/7","repository_url":"https://api.github.com/repos/sunjith/loopback-connector-neo4j-graph","labels_url":"https://api.github.com/repos/sunjith/loopback-connector-neo4j-graph/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/sunjith/loopback-connector-neo4j-graph/issues/7/comments","events_url":"https://api.github.com/repos/sunjith/loopback-connector-neo4j-graph/issues/7/events","html_url":"https://github.com/sunjith/loopback-connector-neo4j-graph/issues/7","id":349981096,"node_id":"MDU6SXNzdWUzNDk5ODEwOTY=","number":7,"title":"Some REST endpoints not supported for temporal data type","user":{"login":"RakeshArth","id":38748537,"node_id":"MDQ6VXNlcjM4NzQ4NTM3","avatar_url":"https://avatars0.githubusercontent.com/u/38748537?v=4","gravatar_id":"","url":"https://api.github.com/users/RakeshArth","html_url":"https://github.com/RakeshArth","followers_url":"https://api.github.com/users/RakeshArth/followers","following_url":"https://api.github.com/users/RakeshArth/following{/other_user}","gists_url":"https://api.github.com/users/RakeshArth/gists{/gist_id}","starred_url":"https://api.github.com/users/RakeshArth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RakeshArth/subscriptions","organizations_url":"https://api.github.com/users/RakeshArth/orgs","repos_url":"https://api.github.com/users/RakeshArth/repos","events_url":"https://api.github.com/users/RakeshArth/events{/privacy}","received_events_url":"https://api.github.com/users/RakeshArth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-13T10:55:53Z","updated_at":"2018-08-13T10:55:53Z","closed_at":null,"author_association":"NONE","body":"Loopback GET endpoint for all nodes (with no filters) of a particular label (model in loopback) throws error if any of the node has a [temporal  field](https://neo4j.com/docs/developer-manual/current/cypher/functions/temporal/) in it.  \r\n\r\nThe stack-trace is:\r\n```javascript\r\nTypeError: Cannot read property 'length' of undefined\r\n    at ${workspaceRoot}\\node_modules\\neo4j\\lib-new\\GraphDatabase.js:268:45\r\n    at ${workspaceRoot}\\node_modules\\neo4j\\lib-new\\GraphDatabase.js:286:13\r\n    at Request._callback (${workspaceRoot}\\node_modules\\neo4j\\lib-new\\GraphDatabase.js:92:20)\r\n    at Request.init.self.callback (${workspaceRoot}\\node_modules\\request\\request.js:186:22)\r\n    at Request.emit (events.js:160:13)\r\n    at Request.<anonymous> (${workspaceRoot}\\node_modules\\request\\request.js:1163:10)\r\n    at Request.emit (events.js:160:13)\r\n    at IncomingMessage.<anonymous> (${workspaceRoot}\\node_modules\\request\\request.js:1085:12)\r\n    at Object.onceWrapper (events.js:255:19)\r\n    at IncomingMessage.emit (events.js:165:20)\r\n    at endReadableNT (_stream_readable.js:1101:12)\r\n    at process._tickCallback (internal/process/next_tick.js:152:19)\r\n```\r\n\r\nNow although the error is in `neo4j` module which you have included in your dependencies, it was last updated [3 years ago](https://www.npmjs.com/package/neo4j?activeTab=versions). So I am raising the issue here.\r\n\r\nApparently `\"resultDataContents\": [\"rest\"]` in the JSON body of POST request to database fails when temporal fields are present. But it succeeds for  `\"resultDataContents\": [\"row\"]` or `\"resultDataContents\": [\"graph\"]` type. The whole JSON body looks something like:\r\n```javascript\r\n{\r\n\t\"statements\": [{\r\n\t\t\"statement\": \"MATCH(n: Label) RETURN n\",\r\n\t\t\"parameters\": {},\r\n\t\t\"resultDataContents\": [\r\n\t\t\t\"rest\"\r\n\t\t]\r\n\t}]\r\n}\r\n```"}}
{"actor":{"display_login":"RakeshArth"}}