{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/2068","repository_url":"https://api.github.com/repos/strongloop/loopback","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/2068/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/2068/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/2068/events","html_url":"https://github.com/strongloop/loopback/issues/2068","id":133627289,"number":2068,"title":"How do I ignore the \"id\" attribute in insert / update requests?","user":{"login":"RothAndrew","id":16000938,"avatar_url":"https://avatars.githubusercontent.com/u/16000938?v=3","gravatar_id":"","url":"https://api.github.com/users/RothAndrew","html_url":"https://github.com/RothAndrew","followers_url":"https://api.github.com/users/RothAndrew/followers","following_url":"https://api.github.com/users/RothAndrew/following{/other_user}","gists_url":"https://api.github.com/users/RothAndrew/gists{/gist_id}","starred_url":"https://api.github.com/users/RothAndrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RothAndrew/subscriptions","organizations_url":"https://api.github.com/users/RothAndrew/orgs","repos_url":"https://api.github.com/users/RothAndrew/repos","events_url":"https://api.github.com/users/RothAndrew/events{/privacy}","received_events_url":"https://api.github.com/users/RothAndrew/received_events","type":"User","site_admin":false},"labels":[{"id":81224241,"url":"https://api.github.com/repos/strongloop/loopback/labels/doc","name":"doc","color":"bfe5bf","default":false}],"state":"open","locked":false,"assignee":{"login":"Amir-61","id":10672146,"avatar_url":"https://avatars.githubusercontent.com/u/10672146?v=3","gravatar_id":"","url":"https://api.github.com/users/Amir-61","html_url":"https://github.com/Amir-61","followers_url":"https://api.github.com/users/Amir-61/followers","following_url":"https://api.github.com/users/Amir-61/following{/other_user}","gists_url":"https://api.github.com/users/Amir-61/gists{/gist_id}","starred_url":"https://api.github.com/users/Amir-61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amir-61/subscriptions","organizations_url":"https://api.github.com/users/Amir-61/orgs","repos_url":"https://api.github.com/users/Amir-61/repos","events_url":"https://api.github.com/users/Amir-61/events{/privacy}","received_events_url":"https://api.github.com/users/Amir-61/received_events","type":"User","site_admin":false},"assignees":[{"login":"Amir-61","id":10672146,"avatar_url":"https://avatars.githubusercontent.com/u/10672146?v=3","gravatar_id":"","url":"https://api.github.com/users/Amir-61","html_url":"https://github.com/Amir-61","followers_url":"https://api.github.com/users/Amir-61/followers","following_url":"https://api.github.com/users/Amir-61/following{/other_user}","gists_url":"https://api.github.com/users/Amir-61/gists{/gist_id}","starred_url":"https://api.github.com/users/Amir-61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amir-61/subscriptions","organizations_url":"https://api.github.com/users/Amir-61/orgs","repos_url":"https://api.github.com/users/Amir-61/repos","events_url":"https://api.github.com/users/Amir-61/events{/privacy}","received_events_url":"https://api.github.com/users/Amir-61/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2016-02-15T05:38:38Z","updated_at":"2016-11-18T18:57:58Z","closed_at":null,"body":"Using MongoDB\n\nPOSTing this\n\n```\n{\n  \"name\": \"someName\",\n  \"subject\": \"Foo\",\n  \"body\": \"Bar\",\n  \"id\": \"SomeTerribleIdIDontWant\"\n}\n```\n\nWill happily insert the record, including the id, into the collection. This happens even if I don't have an \"id\" attribute listed in my model.\n\nHow do I force a database-generated id when inserting a new record?\n"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback/issues/comments/261612327","html_url":"https://github.com/strongloop/loopback/issues/2068#issuecomment-261612327","issue_url":"https://api.github.com/repos/strongloop/loopback/issues/2068","id":261612327,"user":{"login":"crandmck","id":2925364,"avatar_url":"https://avatars.githubusercontent.com/u/2925364?v=3","gravatar_id":"","url":"https://api.github.com/users/crandmck","html_url":"https://github.com/crandmck","followers_url":"https://api.github.com/users/crandmck/followers","following_url":"https://api.github.com/users/crandmck/following{/other_user}","gists_url":"https://api.github.com/users/crandmck/gists{/gist_id}","starred_url":"https://api.github.com/users/crandmck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crandmck/subscriptions","organizations_url":"https://api.github.com/users/crandmck/orgs","repos_url":"https://api.github.com/users/crandmck/repos","events_url":"https://api.github.com/users/crandmck/events{/privacy}","received_events_url":"https://api.github.com/users/crandmck/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T18:57:58Z","updated_at":"2016-11-18T18:57:58Z","body":"@Amir-61 If we need to add or change something in http://loopback.io/doc/en/lb2/Model-definition-JSON-file.html, please open a PR.... or please give me a clearer idea of what we need to do."}}
{"actor":{"display_login":"crandmck"}}