felixge/node-couchdb — pull request #39 by 0xDB (2012-05-18 15:56:07+00:00)
Title: getDoc: added '?attachments='

Hi!

I added support for ['?attachments='](http://wiki.apache.org/couchdb/HTTP_Document_API#Getting_Attachments_With_a_Document) to getDoc.

I realize adding an options-object as parameter would be better than two optional parameters, but it would break programs already using the function with the rev parameter.

I would also like to add the option for ['?atts_since='](http://wiki.apache.org/couchdb/HTTP_Document_API#Getting_Only_Changed_Attachments) some time soon, but that would definitely require an options-parameter of some sort.

Also, I'm new to Javascript and GitHub. If i did something in the wrong way, constructive criticism would be very helpful :)

Kind Regards,
Daniel