I am using the most recent versions of Node.js, Express, Nano, and CouchDB, and am trying to get the username and roles of the currently authenticated user. I am using cookie authentication, which is working fine. However, the GET request to…
I want to query couchdb the same way I do mysql first using a url and also using nano:
SELECT * FROM people WHERE email = 'john@smith.xxx' AND password = 'password'
In nano I created my view:
db.insert(
{ "views":
{ "byLogin":
{…
Somethings wrong with my couchdb complex query processing.
I have a map function which emits complex key consisted of 6 params like this:
emit([doc.profileId, doc.beamId, doc.name, doc.beambeanchId, "true", attachName], {beamdocId:doc._id,…
Couchdb spits out a url that is like this http://127.0.0.1:5984/roxanne/_design/request/_view/images
This has my database and all my json. The problem is I want all the json to be parsed and sent to a different url called /getDocuments. I am using…
I'm attempting to replicate my local CouchDB database with a remote database that lives on iriscouch.com. I'm using nano.
This works fine -- except that the local documents are added to the existing iriscouch database rather than the local database…
I'm using nano to connect to couchDB through node.js; I have read the basic documentation for couch.db and understand it for the most part, but I didn't see a simple query function anywhere. All I would like to do is (from my server), get the value…
I am developing an application with node.js, express, couchDB and using nano to communicate with couch.
I am using a jquery get request from client javascript. Using fiddler i can see that i get my view in the RAW result but the view is never…
This concerns the changesReader API of the couchdb-nano library.
Expected Behavior
I would expect the following code to wait 10 seconds and then return a batch of messages from the last position in the changes feed. So if I updated the DB 5 times…
i have written this Loop to iterate over some data i've got out of my CouchDB database. I am wondering if this Loop is executed synchronous or if i have to handle it with async/await for example.
database.view('test', 'getAllowedTracker',…
I am trying to insert a media document to cloudant couchdb using below below code.
var uuid = require('uuid').v4;
fs.readFile('./test.jpeg', function(err, data) {
if (!err) {
var newAttachmentObj = {
type: 'media',
…
I need help with a function nano.request(). I try get data by a request using a cloudant (couchdb) query but i no have idea how make it and i search anywhere.
please i need help :P how search by query in a nano.request function??
thanks
var query =…
I'm using the PouchDB library on web & react-native.
I'm building a login system (login & sign up - already working),
but I'm missing an important function:
Forgot my password!
How can I set a new password using Node.JS -> Nano & CouchDB?
I'm using…