Questions tagged [rethinkdb-javascript]

JavaScript driver for RethinkDB

JavaScript driver for RethinkDB.

197 questions
0
votes
0 answers

getting RethinkDB: RqlDriverError: Handshake timedout

I am using RethinkDB as my DB backend with ember.js but when i am trying to run it i am getting myproject\server\config\db.js:12 throw error; ^ RqlDriverError: Handshake timedout on 12 line of my db.js file Here is my db.js…
0
votes
1 answer

RethinkDB Update the element in the nested array

{ id: "a", deck_list: [{ name: 'Deck1', job: 'mage', cards: [] }], match: [] } Hi I am trying to make a DB for card game Decks. In 'deck_list', there are list of decks that created by users. Whenever user adds a new…
Jaebum
  • 1,397
  • 1
  • 13
  • 33
0
votes
0 answers

Rehinkdb, get the rows number after changes()

I am new in Rethinkdb and the ReQL api. And I want to know what is the best way of getting the count() of a table after insert() a new row? This is my actual javascript implementation, but I think it can be improved r.table('likes') .changes() …
Michael Rasoahaingo
  • 1,069
  • 6
  • 11
0
votes
2 answers

`waitForIndex` does not work correctly

When starting script below, I got an error that stuck on Something bad heppened while waiting for index created Index `createdAt` was not found on table…
nishitani
  • 3
  • 1
0
votes
1 answer

How to create, update, or append a nested document

I am new to rethinkdb and I'm working on an admin tool for a game server in which I need to record player kills and deaths. I have the following structure for a player in which "name" is a secondary index: "name": NameofPlayer, "sessions:" [ { …
0
votes
1 answer

Rethinkdb join array having subdocument

I am not getting any results(no error as well) when I eq join a subdocument array. Consider the following structure for user User Table: { "email": "email@emaildomain.com", "id": "ca433c6a-8cbc-4687-b217-19cabe5fcf63" , "image":…
anandaravindan
  • 2,401
  • 6
  • 25
  • 35
0
votes
1 answer

Rethink DB - Data Explorer

I am pretty un-advanced with computer in general, however am using RethinkDB to store data. I am using data explorer on the platform to query and filter information I want, however want to query and search two or three tables in one query. Is this…
Coby
  • 1
0
votes
1 answer

Select multi condition on parameter with Rethinkdb

I want to retrieve all User or get all User with Name variable. I'm using Rethinkdb and I want to convert SQL Server to Rethinkdb with my query SQL Server: SELECT * FROM User WHERE Name = '' OR Name = @ Name This 's my Rethinkdb query, but It not…
Truc
  • 386
  • 4
  • 12
0
votes
1 answer

Rethinkdb filter on an earlier query

I have a table "posts" with "timestamp". Now I want from all user that have more than 1 post, to get all posts EXCEPT the most recent post. With this query I can successfully check the users who have more than 1 post: r.table("post") …
user15628
  • 65
  • 5
0
votes
0 answers

Why is my RethinkDB update query "terminated by an unknown cause"

When I run this query: r.db('geodata').table('os50kgazetteer') .getAll(false, { index: 'has_geolocation' }) .update({'geolocation': r.point(r.row('Coordinates')(0),r.row('Coordinates')(1))} ) after several minutes of activity (a lot of reads…
Tim Long
  • 13,508
  • 19
  • 79
  • 147
0
votes
1 answer

changes() not called when inserting a document

I have a problem with the changelog function of rethinkdb. There is no console output, when adding a document to the collection. BUT "changes" is outputted once after starting my application via node app.js, why is that so? Any help is…
Chris
  • 4,255
  • 7
  • 42
  • 83
0
votes
1 answer

Filter where attribute is in supplied array

Suppose I have these documents in a Things table: { "name": "Cali", "state": "CA" }, { "name": "Vega", "state": "NV", }, { "name": "Wash", "state": "WA" } My UI is a state-picker where the user can select multiple states. I want to…
000
  • 26,951
  • 10
  • 71
  • 101
0
votes
0 answers

rethinkdb all records are deleted instead of only records matching index

i have a table notifications. records are inserted as so: socket.on('set notif',function(data){ var user = socket.client.user; if(typeof user !== 'object' && user == '_srv'){ …
r3wt
  • 4,642
  • 2
  • 33
  • 55
0
votes
1 answer

RethinkDB - Filter using Match() by value in same dataset and table

So, since I'm too dumb obviously to figure this out myself, I'll ask you better folks here on SO instead. Basically i have a datastructure that looks like the following: ...., { "id": 12345 .... "policy_subjects": [ { "compiled": …
Widerberg
  • 1,118
  • 1
  • 10
  • 24
0
votes
1 answer

How can I import RethinkDB javascript library on EmberJS?

I'm trying to use RethinkDB javascript library with EmberJS. As there is no bower package for RethinkDB to install for ember, I'm trying to use npm package on ember. But I'm new to javascript as well as EmberJS I'm struggling to achieve this. I have…