Glynn Bird
Glynn Bird
If a user has a "partition object" e.g. ```js const partition1 = db.partition('partition1'); ``` then it might make sense for them to be able to do all CRUD operations: -...
It's also worth noting that the Nano library includes the `search` endpoint which models the Cloudant-specific Lucene search API. It might be worth allowing `partition1.search(...)` too.
I think so. If someone does `partition1.insert({ _id: 'bob', x: 45 })`, the document _id would be manipulated to add the partition prefix. Same story for the other operations. The...
The code that allows a user defined function to be supplied is here: - https://github.com/dscape/nano/blob/master/lib/nano.js#L45 This remains in place. The problem was that this code was _also_ repeated in logger.js....
Thanks. I'm struggling to get the bottom of this one: - Nano returns a `stream.PassThrough` object because it wants to be able to return a stream to the user synchronously...
You could try the IBM Cloudant SDK which was built with typescript in mind from day one. Alternatively, Nano is open source and pull requests that improve its typescript support...
@aeharding I was thinking about that. That would be a dream. Unfortunately, we'll have to wait until node 18 is the norm.
Couldn't reproduce myself: ```js const nano = require('nano')({ url: process.env.COUCH_URL, requestDefaults: { jar: true } }) const username = 'myusername' const userpass = 'mypassword' const db = nano.db.use('people') const main...
This is a peculiar one. Must be something to do with whatever webpack does to Nano on its journey to client-side JavaScript. Does anyone have any suggestions as to what...
I have tried @nickelnext's instructions and they work for me! 👍