{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-connector-postgresql/issues/71","labels_url":"https://api.github.com/repos/strongloop/loopback-connector-postgresql/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-connector-postgresql/issues/71/comments","events_url":"https://api.github.com/repos/strongloop/loopback-connector-postgresql/issues/71/events","html_url":"https://github.com/strongloop/loopback-connector-postgresql/pull/71","id":70198484,"number":71,"title":"Attempt at a crude error message when no id has been specified for model","user":{"login":"stev-0","id":1316871,"avatar_url":"https://avatars.githubusercontent.com/u/1316871?v=3","gravatar_id":"","url":"https://api.github.com/users/stev-0","html_url":"https://github.com/stev-0","followers_url":"https://api.github.com/users/stev-0/followers","following_url":"https://api.github.com/users/stev-0/following{/other_user}","gists_url":"https://api.github.com/users/stev-0/gists{/gist_id}","starred_url":"https://api.github.com/users/stev-0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stev-0/subscriptions","organizations_url":"https://api.github.com/users/stev-0/orgs","repos_url":"https://api.github.com/users/stev-0/repos","events_url":"https://api.github.com/users/stev-0/events{/privacy}","received_events_url":"https://api.github.com/users/stev-0/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback-connector-postgresql/labels/%23community%20contribution","name":"#community contribution","color":"D4AF37"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-22T18:20:00Z","updated_at":"2015-04-22T18:20:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/strongloop/loopback-connector-postgresql/pulls/71","html_url":"https://github.com/strongloop/loopback-connector-postgresql/pull/71","diff_url":"https://github.com/strongloop/loopback-connector-postgresql/pull/71.diff","patch_url":"https://github.com/strongloop/loopback-connector-postgresql/pull/71.patch"},"body":"I have had trouble (see [here](https://groups.google.com/forum/#!topic/loopbackjs/xlcVdTk8O4U) and [here](http://stackoverflow.com/questions/29746017/inserting-geometry-json-into-loopbackjs-model) with an insert into query in the postgresql connector. All other queries were working, but I didn't realise it was because I hadn't defined an id in my model. \r\n\r\nThe error message was not very specific so this is an attempt to improve that situation. I realise it's fairly crude, happy to try and make it conform more to loopback standards, but I am a bit new to the project.\r\n\r\nFailing this, is there a FAQ, or somewhere where this could be documented. I know it's obvious that a model backed by a database should have an id, but it's an easy mistake to make, and the fact that all other queries were working threw me for a while."},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-connector-postgresql/issues/comments/95290354","html_url":"https://github.com/strongloop/loopback-connector-postgresql/pull/71#issuecomment-95290354","issue_url":"https://api.github.com/repos/strongloop/loopback-connector-postgresql/issues/71","id":95290354,"user":{"login":"slnode","id":3865961,"avatar_url":"https://avatars.githubusercontent.com/u/3865961?v=3","gravatar_id":"","url":"https://api.github.com/users/slnode","html_url":"https://github.com/slnode","followers_url":"https://api.github.com/users/slnode/followers","following_url":"https://api.github.com/users/slnode/following{/other_user}","gists_url":"https://api.github.com/users/slnode/gists{/gist_id}","starred_url":"https://api.github.com/users/slnode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slnode/subscriptions","organizations_url":"https://api.github.com/users/slnode/orgs","repos_url":"https://api.github.com/users/slnode/repos","events_url":"https://api.github.com/users/slnode/events{/privacy}","received_events_url":"https://api.github.com/users/slnode/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T18:20:01Z","updated_at":"2015-04-22T18:20:01Z","body":"Can one of the admins verify this patch? To accept patch and trigger a build add comment \".*ok\\W+to\\W+test.*\""}}