Questions tagged [rethinkdb-javascript]

JavaScript driver for RethinkDB

JavaScript driver for RethinkDB.

197 questions
3
votes
3 answers

RethinkDB Transaction to multiple documents/tables

I need to update 2 tables in one transaction. In current version RethinkDB doesn't support transactions from the box. So, how can I achieve this? I can make update in 2 ways: Update 1st table. If success -> update second table. Update 2nd tables…
3
votes
2 answers

RethinkDB max file size attachments (BLOB)

I found in documentation that RethinkDB can store Binary Files (BLOBs). This is great ! I have an ECM application and need to store 50.000.000 of files. ( from 8K until 1GB ). I need to know what is the max file size in RethinkDB ? Will be some…
Carlos
  • 51
  • 1
  • 1
2
votes
1 answer

Issue with connecting to rethinkdb from Windows 11 via thinky (nodejs)

I'm trying to onboard a new developer, that is using Windows 11 as the only one on our small team. I've guided him through installing WSL2 and Ubuntu 20.04.3 LTS (linux kernel: 5.10.93.2-microsoft-standard-WSL2). We are 3 other developers who are…
2
votes
1 answer

Using secondary index for .lt() with .filter() in RethinkDB

Currently trying to solve a problem by using RethinkDB to find those objects which has a createdAt date key with less than the given value by using .lt(). The following query works just fine with .filter() and .lt(): r.db("databasename") …
norbitrial
  • 14,716
  • 7
  • 32
  • 59
2
votes
1 answer

ReQL | RethinkDB error: Expected type TABLE but found SINGLE_SELECTION

hello i have this in the data explorer on the webinterface but i have a error code: r.db("discordboatsclubv1").table("users").get("355995885085392896").insert({ "admin":"true" }) error: e: Expected type TABLE but found SINGLE_SELECTION: { …
2
votes
2 answers

Rethinkdb full search by contains text

I have a lot of tries to search by same part of the string in the rethinkdb but I can not do it yet. And I receive this error: db.table("jobs") .filter(db.row("title").contains(title)) .filter({ locationCode: location }) …
Ali Torki
  • 1,929
  • 16
  • 26
2
votes
1 answer

How to delete elements of a table in Rethinkdb from Data Explorer?

I have an application created in Node.js with a Rethinkdb database, I load images from the application, but from the Data Explorer, to which you can connect from localhost: 8080, I can not delete the loaded elements. // This is how I show the…
gemita
  • 2,686
  • 2
  • 10
  • 17
2
votes
1 answer

rethinkdb password for user from Node.js

I have successfully configured a user "bob" to use the password "secret" in rethinkdb: r.db('rethinkdb').table('users').insert({id: 'bob', password: 'secret'}) From Node.js, I'm trying to connect to it using npm's rethinkdb module. r.connect({…
dgulabs
  • 443
  • 4
  • 16
2
votes
1 answer

RethinkDB Query to Find Duplicate Email Addresses (records)

I have the following ReQL Query which Identifies distinct addresses, but can't seem to add the not() method to get the opposite. r.db('mydb').table('users').orderBy(r.desc('email')).without('id').distinct()
bbqchickenrobot
  • 3,592
  • 3
  • 45
  • 67
2
votes
1 answer

Keystone js audio video support and connection with rethink db?

I am new to keystone js, I am looking to answer these questions: Can we add/view video/audio in gallery view ? Can we connect keystone js with Rethink db?
midhun k
  • 1,032
  • 1
  • 15
  • 41
2
votes
2 answers

RethinkDB update and replace-without in one line

Can anyone think if an elegant way to do update and replace in one line? I want to use the r.row.without to remove fields and update at the same query. Something like: r.db('db').table('table').get('item_id') .update({ field_a:'value_a'}) …
Sagivf
  • 705
  • 6
  • 10
2
votes
1 answer

Rethinkdb query for data between 2 dates

I would like to run a query that gets all the documents that have a lastUpdateDate from a date provided until today. lastUpdateDated is defined like lastUpdateDate = new Date() -> Tue Jan 19 2016 20:45:32 GMT+00:00 The following works in the…
Mike Fielden
  • 10,055
  • 14
  • 59
  • 99
2
votes
1 answer

Make RethinkDB run a request on data change

I can listen for changes using a library for one of supported languages. It's NodeJS in my case, and the code looks like this: r = require('rethinkdb') r.connect() .then(function (conn) { return…
Sergei Basharov
  • 51,276
  • 73
  • 200
  • 335
2
votes
1 answer

RethinkDB: Realtime Changes On Array, return only newly appended

Brief: I'm using RethinkDB's change feeds to watch changes on a specific document (not the entire table). Each record looks like this: { "feedback": [ ], "id": "bd808f27-bf20-4286-b287-e2816f46d434" , "projectID": …
jiveTurkey
  • 689
  • 3
  • 7
  • 17
2
votes
1 answer

Chaining queries in rethinkdb

Lets say I have a "category" table, each category has associated data in the "data" table and it has associated data in other tables "associated" and I want to remove a category with all it's associated data. What I'm currently doing is something…
RonZ
  • 367
  • 2
  • 8
1
2
3
13 14