Questions tagged [cradle]

A high-level, caching, CouchDB client for Node.js

71 questions
0
votes
0 answers

Node.js doesnt update its value after data request on Couchdb

i just create a gallery page in Node.js using help from Express and Cradle.io to communicate with CouchDB using this code below (images are saved in CouchDB attachment): app.get("/album/:id", function(req, res){ var id = req.params.id; db.get(id,…
DennyHiu
  • 4,861
  • 8
  • 48
  • 80
0
votes
1 answer

Handle the event when device connect to cradle windows ce opennetcf in C#

I develop an application on windowCE 5.0 with opennetcf library. I want to check WHEN my Device is connected to Cradle. It means I want to handle the event of plugged the device to cradle or other similar. My purpose is that when Device is connected…
Truong Anh Tuan
  • 79
  • 1
  • 11
0
votes
1 answer

Send Attachment File from CouchDB to user?

i'm new to CouchDB and recently i create download portal using Express. I want to make sure that only authorize users will able to download so i create checking procedure in app.js (using express) like this : app.get("/download/:id/:file", function…
DennyHiu
  • 4,861
  • 8
  • 48
  • 80
0
votes
3 answers

How to get unique values from CouchDb?

In couchdb i have a array field: numbers:["79998887766","79998887755","79998887766","79998887744"] In node.js app i want to have only unique numbers.Like this: ["79998887766","79998887755","79998887744"] Its possible to do with couchdb view or…
Kliver Max
  • 5,107
  • 22
  • 95
  • 148
0
votes
0 answers

use cradle to delete db but cache didn't reset

I use node 0.8.18, express3.2.5, cradle0.6.6. my problem is : after I saved a doc into db, then I delete db to reset my testcase env, but when I save the doc with the same id, cradle told me that doc is exsited! source code as follow: Repository =…
Luke
  • 81
  • 1
  • 5
0
votes
2 answers

How do I delete a key-value pair using Cradle in CouchDB/Node.js?

I've been working a lot with Cradle, the couchDB client. However, I have a document filled with key-value pairs, and I'm trying to delete a specific row in there. In the documentation, I cannot find a way to do deletion that doesn't include deleting…
streetlight
  • 5,968
  • 13
  • 62
  • 101
0
votes
1 answer

How do I add a new key-value pair to CouchDB using Cradle? Node.js

I have a document in my CouchDB database I would like to add a new key-value pair to. I am using Cradle to communicate with the DB (https://github.com/cloudhead/cradle), however, I get an error if I try to update it with a field that doesn't exist.…
streetlight
  • 5,968
  • 13
  • 62
  • 101
0
votes
1 answer

How to retrieve the couchDB data by given limit(start_limit,end_limit) using cradle in node.js?

In my application i'm using node.js with coucdhDB database.Now i want to get the data by given limit if user mentioned start limit as 10 and end limit as 20 means i want to get the data between 10 to 20.How can i do this.
user1629448
  • 227
  • 1
  • 4
  • 10
0
votes
1 answer

Couchdb retrieve chat history between two users

I'm currently using Couchdb to save chat history between two users. My db contains every inserted messages entered by every user. They are entered like this: { _id: (timestamp), from: sender, to: receiver, message: msg } I have a view coded…
C.O.D.E
  • 885
  • 8
  • 19
0
votes
1 answer

How to get a list of document's fields from couchDB using node/cradle?

First of all, i want to let you know that i am a novice with node and couchDB and i have this project where i need to add some functionality to the existing application. So, i have javascript/node/express web application and i want to get a specific…
Basic
  • 41
  • 5
0
votes
1 answer

Best way to use Cradle with Express.js (CouchDB, Node.js)

I'm building my website ( http://tedxgramercy.jit.su ) with express.js and so far I've been using the http.request method in node to access couch, and that's been cool. I've learned lots about how http, couch, and node work, which is awesome.…
Costa Michailidis
  • 7,691
  • 15
  • 72
  • 124
1 2 3 4
5