err
- Objekt zurückgibt, dies bedeutet automatisch, dass ok
== false und umgekehrt kein Error
- ok
ist immer true
OK, at the moment I have following problem:
I am trying to implement attachment upload in the right way.
As I mentioned I should do it in following steps
- db.get to get the updated versions (with `_attachments`)
- Add additional custom attachment meta data to the document
- db.insert - Save updated document
Can you verify it?
db.attachment.head
implementation?
@dscape
As I mentioned in nano
there is no db.head
And the best way to ensure that
it to create it?
logs: (thing, callback) => {
nano.db.use(‘mydb').search('log', 'logs', { message: ’searchstring’}, (err, data) => {
callback(err, data);
});
},
Error: missing handler: _search