{"action":"created","issue":{"url":"https://api.github.com/repos/Vincit/objection-graphql/issues/17","repository_url":"https://api.github.com/repos/Vincit/objection-graphql","labels_url":"https://api.github.com/repos/Vincit/objection-graphql/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/Vincit/objection-graphql/issues/17/comments","events_url":"https://api.github.com/repos/Vincit/objection-graphql/issues/17/events","html_url":"https://github.com/Vincit/objection-graphql/issues/17","id":250137764,"number":17,"title":"$formatDatabaseJson doesn't work for a newer versions of this library","user":{"login":"nasushkov","id":7974392,"avatar_url":"https://avatars0.githubusercontent.com/u/7974392?v=4","gravatar_id":"","url":"https://api.github.com/users/nasushkov","html_url":"https://github.com/nasushkov","followers_url":"https://api.github.com/users/nasushkov/followers","following_url":"https://api.github.com/users/nasushkov/following{/other_user}","gists_url":"https://api.github.com/users/nasushkov/gists{/gist_id}","starred_url":"https://api.github.com/users/nasushkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nasushkov/subscriptions","organizations_url":"https://api.github.com/users/nasushkov/orgs","repos_url":"https://api.github.com/users/nasushkov/repos","events_url":"https://api.github.com/users/nasushkov/events{/privacy}","received_events_url":"https://api.github.com/users/nasushkov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-14T20:01:54Z","updated_at":"2017-08-14T20:18:29Z","closed_at":null,"body":"Hi\r\nI'm trying to upgrade from version 0.1.2. I use _snake_case_  for db objects naming and _camelCase_ for my ORM models. I use the following code to parse from one format to another:\r\n\r\n```\r\n  $formatDatabaseJson(json) {\r\n        json = super.$formatDatabaseJson(json)\r\n        return mapKeys(json, (value, key) => snakeCase(key))\r\n    }\r\n    $parseDatabaseJson(json) {\r\n        json = mapKeys(json, (value, key) => camelCase(key))\r\n        return super.$parseDatabaseJson(json)\r\n    }\r\n```\r\n\r\nMy queries used to work for version 0.1.2, but now they fail  and I think the reason is wrong parsing behavior as I've got wrong queries in my log:\r\n\r\n> select \"area_param\".\"paramName\", \"area_param\".\"type\", \"area_param\".\"displayUnit\", \"area_param\".\"displayName\" from \"area_param\" "},"comment":{"url":"https://api.github.com/repos/Vincit/objection-graphql/issues/comments/322297778","html_url":"https://github.com/Vincit/objection-graphql/issues/17#issuecomment-322297778","issue_url":"https://api.github.com/repos/Vincit/objection-graphql/issues/17","id":322297778,"user":{"login":"koskimas","id":846508,"avatar_url":"https://avatars2.githubusercontent.com/u/846508?v=4","gravatar_id":"","url":"https://api.github.com/users/koskimas","html_url":"https://github.com/koskimas","followers_url":"https://api.github.com/users/koskimas/followers","following_url":"https://api.github.com/users/koskimas/following{/other_user}","gists_url":"https://api.github.com/users/koskimas/gists{/gist_id}","starred_url":"https://api.github.com/users/koskimas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koskimas/subscriptions","organizations_url":"https://api.github.com/users/koskimas/orgs","repos_url":"https://api.github.com/users/koskimas/repos","events_url":"https://api.github.com/users/koskimas/events{/privacy}","received_events_url":"https://api.github.com/users/koskimas/received_events","type":"User","site_admin":false},"created_at":"2017-08-14T20:18:29Z","updated_at":"2017-08-14T20:18:29Z","body":"Could you put this in your package.json\r\n\r\n```\r\n\"objection\": \"git://github.com/Vincit/objection-graphql.git#382d2ed\"\r\n```\r\n\r\nand test if it fixed you bug?"}}
{"actor":{"display_login":"koskimas"}}