I'm having this exact problem: https://github.com/rethinkdb/rethinkdb/issues/6503  First time I connect, it console.logs 1 time. If I refresh it console.log 2 times. If I refresh again, it console logs 3 times. and so on.Keep adding one more cons...
I'm trying to query only things that are less than a day old... in JS this returns true; Why is rethink not returning true, so also not returning any results?  r.db( "db" ).table("table")   .filter( function (item) {     var...
I have imported a table from MySQL into RethinkDB, and it worked well. Now I am trying to figure out how to update my previous MySQL timestamp fields into Time objects in RethinkDB, with no success.  Using the query explorer:  r.table('users'...
This is my very first interaction with rethinkdb, it looks pretty good but i'm having some problems...  The idea is simple: create a database if is not created yet.  The code is simple, or well, the idea of code:  module.exports = function(r, con...
I am selecting multiple documents from an array of keys using (as suggested in this answer):  r.expr([person-id1, person-id2, person-id3])  .eqJoin(function(doc) { return doc; }, r.table("person"))  .zip()   Then joining to a second table by...
I'm learning RethinkDB and of course I'm interesting in using changes() method to get changefeed.  I know how to start them but the docs are not clear about how to stop a changefeed? Should I just call close() on the cursor passed into run()...
I want to send a http post with an address, which will grab a doc from the database. I would like to then use that doc's geodata in a getNearest function, ultimately returning the nearest four other locations. How do I go about stringing these tw...
I know rethinkDB's insert() has an upsert option. Eg, from the docs:  rethinkdb.table('marvel').insert(   { superhero: 'Iron Man', superpower: 'Arc Reactor' },   {upsert: true, return_vals: true} ).run(conn, callback)   Bu...
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...
I'm trying to get data from a document in RethinkDB in NodeJS and pass the result into a variable I wish to use in a template file, but it is always undefined when I try to print the data variable like #{data} (I'm using pug/jade) because it&...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.