Using $this when not in object context RethinkDB time object
By : Marina
Date : March 29 2020, 07:55 AM
hop of those help? I'm trying to convert an object that holds a rethinkdb datetime object (provided by the PHP-RQL library) but i'm getting a fatal error saying: , The error message
|
Rethinkdb: returning more than one object from a query
By : Michael Oberlauder
Date : March 29 2020, 07:55 AM
I wish did fix the issue. You can combine two queries by writing something like r.expr([query1, query2]) and it should work.
|
RethinkDB filtering Object Array
By : Selim Colakoglu
Date : March 29 2020, 07:55 AM
it should still fix some issue I'm new to rethinkdb and I wanted to filter something like... get all with Kiwi or Strawberry as preferred fruit , This is what you're looking for: code :
r.db('appname').table('food')
.filter((row) => {
r.or( // Returns true if any of the following are true
row('fruits')('preferred').contains('Kiwi'),
row('fruits')('preferred').contains('Strawberry')
)
});
r.db("appname").table('food')
.filter((row) => {
return row('fruits')('preferred').setIntersection(['Kiwi', 'Strawberry']).count().gt(0)
})
|
rethinkdb changesfeed in express with socket.io displaying [object object]
By : Krishnaprakash Kasth
Date : March 29 2020, 07:55 AM
To fix this issue I'm using express.js, rethinkdb, thinky, socket.io. Trying to notify the index page of any changes that happens in the db. So I use rethinkdb changesfeed (and I can see the updates in console.log) but the cursor/feed is showing object object instead of the data. , From your code: code :
console.log(item);
//if (item && item.new_val)
socket.emit("message-from-server", { greeting: item });
|
Why can't I append an object to an array in rethinkdb?
By : Karl-Henrik Söderqvi
Date : March 29 2020, 07:55 AM
hope this fix your issue You need to update document with a document not an array. Your reql should look like this code :
rethink.table('shifts')
.get(shiftId)
.update({
milestones: rethink.row('milestones').append({
dateAchieved: "2017-01-01",
phaseType: "TEST"
})
})
.run(rethinkConnection)
|