{"action":"created","issue":{"url":"https://api.github.com/repos/feathersjs/feathers-mongoose/issues/34","labels_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/issues/34/comments","events_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/issues/34/events","html_url":"https://github.com/feathersjs/feathers-mongoose/issues/34","id":124547949,"number":34,"title":"Add docs for overriding the service methods (patch for example)","user":{"login":"jamesjnadeau","id":2386054,"avatar_url":"https://avatars.githubusercontent.com/u/2386054?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesjnadeau","html_url":"https://github.com/jamesjnadeau","followers_url":"https://api.github.com/users/jamesjnadeau/followers","following_url":"https://api.github.com/users/jamesjnadeau/following{/other_user}","gists_url":"https://api.github.com/users/jamesjnadeau/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesjnadeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesjnadeau/subscriptions","organizations_url":"https://api.github.com/users/jamesjnadeau/orgs","repos_url":"https://api.github.com/users/jamesjnadeau/repos","events_url":"https://api.github.com/users/jamesjnadeau/events{/privacy}","received_events_url":"https://api.github.com/users/jamesjnadeau/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-01T15:23:44Z","updated_at":"2016-01-01T17:44:14Z","closed_at":"2016-01-01T17:44:14Z","body":"The current patch method just calls the update function, perfectly fine default functionality IMHO. However, I'm more used to the patch operation just updating the fields it's sent, not the whole record, so when I started out with feathers-mongoose, I sought a way to override this method to do what I want.\r\n\r\nOverriding this functionality would be a good teaching moment for the docs to show how this is done. Took me a while to hunt down the preferred way to do it via a issue from someone else posted(https://github.com/feathersjs/feathers-mongoose/issues/26).\r\n\r\nIt would be nice to move this useful info to the readme. Altering methods, and even adding their own, is high up on the list of first things a developer is going to want to do when they start using feathers-mongoose. Getting info on the best way to do it out there early so people can hit the ground running is going to improve the experience of first time users.\r\n\r\nAlso on a related note, @ekryski, how would you recommend/envision extending/overriding a service method with es6 code base you are working on in https://github.com/feathersjs/feathers-mongoose/pull/33? Might want to throw docs on that into your work in progress. Thanks so much for your time in advance! Keep up the great work!"},"comment":{"url":"https://api.github.com/repos/feathersjs/feathers-mongoose/issues/comments/168320446","html_url":"https://github.com/feathersjs/feathers-mongoose/issues/34#issuecomment-168320446","issue_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/issues/34","id":168320446,"user":{"login":"jamesjnadeau","id":2386054,"avatar_url":"https://avatars.githubusercontent.com/u/2386054?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesjnadeau","html_url":"https://github.com/jamesjnadeau","followers_url":"https://api.github.com/users/jamesjnadeau/followers","following_url":"https://api.github.com/users/jamesjnadeau/following{/other_user}","gists_url":"https://api.github.com/users/jamesjnadeau/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesjnadeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesjnadeau/subscriptions","organizations_url":"https://api.github.com/users/jamesjnadeau/orgs","repos_url":"https://api.github.com/users/jamesjnadeau/repos","events_url":"https://api.github.com/users/jamesjnadeau/events{/privacy}","received_events_url":"https://api.github.com/users/jamesjnadeau/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T17:44:14Z","updated_at":"2016-01-01T17:44:14Z","body":"I'm going to close this as I think this will be covered in other updates."}}