A high-level, caching, CouchDB client for Node.js
Questions tagged [cradle]
71 questions
0
votes
1 answer
Incompatible types cannot be converted to Fragment
So i'm trying to make a simple app with bottom navigation, but i'm kinda stuck with the Fragment things.
I these error:
error: incompatible types: berandaFragment cannot be converted to Fragment
error: incompatible types: beritaFragment cannot be…

Yahya98
- 5
- 1
- 3
0
votes
1 answer
Android Studio syntax errors
I just started to learn about Android App Development, and I am about to create a simple application for starter right now.
I followed a tutorial on YouTube, but I don't know why I get some errors when I'm trying to run my app. It says they expect a…

Yahya98
- 5
- 1
- 3
0
votes
1 answer
Couchdb2 mango/find js api
I have noticed that all the couchdb api helpers don't implement Mango query
I have found cradle started working on it, but seems they stoped implementing, nothing on docs about…

Mike Zak
- 105
- 7
0
votes
1 answer
When I uncomment one line of code, I receive this error: _http_outgoing.js:359 throw new Error('Can\'t set headers after they are sent.');
When I uncomment this line: return done(null, false, { message: 'Incorrect username' }); in the following code, Node.js runs without any error, otherwise, Node.js gives an error mentioned later:
//we need to define a local Strategy to authenticate…

Megidd
- 7,089
- 6
- 65
- 142
0
votes
1 answer
How to Programmatically Determine that a Motorola MC55 MC65 MC67 Is in the Cradle
We need to be able to determine within the application running on the handheld device that the device has been returned to the cradle.
While one method might be to observe if the battery charge level increases, this approach is really a workaround…

DumbestGuyOnSaturn
- 19
- 6
0
votes
1 answer
ionic build android FAILURE: Build failed with an exception. Could not create an instance of type org.gradle.invocation.DefaultGradle_Decorated
I created an Android platform with success, but when I run
ionic build android
I get the following error:
FAILURE: Build failed with an exception.
* What went wrong:
Could not create an instance of type…

Lee Rooy
- 141
- 1
- 2
- 11
0
votes
0 answers
CouchDB Cradle Error When toLowerCase Used
Okay, I've stumbled upon this weird error. I'm using cradle CouchDB connector and when I pass in k (typeof -> string) it works but when I uncomment the line k = k.toLowerCase(); it gives me the error below the code…

ProfessorManhattan
- 703
- 9
- 27
0
votes
1 answer
couchdb Save with cradle api and iriscouch follow api not working in NodeJS function
I am trying to save a javascript object with cradle in NodeJS but I do not get a response or an error message after the save. Its a local couchdb with no password set. The connection is ok and the database exists.
I am also using iriscouch follow…

user1906451
- 83
- 6
0
votes
1 answer
What is the proper way to query the couchdb's _users database from node?
I am using the cradle package on node to query couchdb. My node instance
has admin privileges.
I am looking for the proper way to query the _users table from node.
right now, I am doing something like this:
var db = conn.database('_users');
…

dipole_moment
- 5,266
- 4
- 39
- 55
0
votes
1 answer
GeoCouch support in Node.js
I would like to use [GeoCouch](https://github.com/couchbase/geocouch/) and CouchDB with Node.js and just wondering whether
Nano
Cradle
are supporting GeoCouch views?

user977828
- 7,259
- 16
- 66
- 117
0
votes
1 answer
Mass update of records in CouchDB
I have an employees database in CouchDB that has over 100k of records. I need to update the salary field for all of them. I am using nodejs and cradle and would the code below be the right way to go ? Are there any other alternatives if this is not…

user2636123
- 65
- 3
- 10
0
votes
1 answer
case_clause error couchdb with cradle
When I try to add a document to my couchdb I get the following error:
{case_clause, {[{<<"error">>, <<"invalid value">>}, {<<"reason">>, [<<"you need to give the ticket a ticketnumber">>]}]}}}
My validate_doc_update method looks like this:
function…

Knerd
- 1,892
- 3
- 28
- 55
0
votes
1 answer
optimize a SQL query for a couchdb view
How to optimize this SQL query for a couchdb view ?
SELECT * FROM db WHERE user = '$userid' OR userFollowed = '$userid'
The couchdb database contains this structure of documents:
_id
user
userFollowed
This because a user can follows another…

Manuel Di Iorio
- 3,631
- 5
- 29
- 31
0
votes
1 answer
how to improve the view with map/reduce in couchdb and nodejs
I'm using nodejs with the module cradle to interact with the couchdb server, the question is to let me understanding the reduce process to improve the view query...
For example, I should get the user data from his ID with a view like this:
map:…

Manuel Di Iorio
- 3,631
- 5
- 29
- 31
0
votes
1 answer
Store data in couchbase using NodeJs and cradle
I am trying to save data point in Couchbase Using cradle with NodeJs. Checkout this code :
var cradle = require('cradle'),db;
var connection = new(cradle.Connection)('localhost', 8091, {
auth: { username: 'Admin', password: 'Admin' }
});
var db…

user234049
- 21
- 2