-
I have User model and let's say a User can have one friend. I modelled the relationship as follows:
``` js
var User = thinky.createModel('user', {
id: String,
name: String,
friend_id: String,
}…
-
I've been a doing a lot of queries like this:
```
r.table("users").eqJoin("session_id", r.table("sessions"))
.pluck({
left: true,
…
-
So, I have the following issue in the application I am developing. I was considering developing my own ORM just to solve this, but now I'm thinking it may be a more common issue, or at least I can som…
-
Buffer support would be a great addition to thinky. I would create a pull request, but I'm unsure which branch to send it to, so instead, I've created a [gist](https://gist.github.com/JamesS237/402199…
-
I'm attempting to order by a joined document, and I can't seem to make it work. Here's a simple example. Assuming the following models:
``` javascript
var Commit = thinky.createModel('Commit', {
…
-
For example, consider
``` javascript
r.table('scores').orderBy({index: r.desc('score')}).limit(10).changes()
```
There doesn't seem to be an easy way to determine on the client when the initial batc…
-
I'm using this lib with koa and it's annoying to have to yield twice to get the full array.
I would love a way to yield just once and have it return the full array. I'm unsure of what the best synta…
-
I'm currently looking to replace JugglingDB with Thinky. As such, I find myself looking for a few features JDB supports that have proved very useful. Hooks is one.
In JDB there are several predefined…
-
I'd like to be able to create a dumber query interface, where filters can be built by field names, without the implementer necessarily knowing if the field is indexed or not.
Without a list of index…
-
Say I have an "owner" relation that should exist for every post. I don't see any great way, presently, to ensure that it is set before saving. Sure, you might add an "ensure_relations" option, or a "r…