js-data-rethinkdb
js-data-rethinkdb copied to clipboard
RethinkDB adapter for js-data. Main Site: http://js-data.io, API Reference Docs: http://api.js-data.io
Is there some way to use orderBy with more than one field? For example, this ```orderBy(r.desc('fieldA'), r.desc('fieldB'))``` have different results from ```orderBy(r.desc('fieldA')).orderBy(r.desc('fieldB'))```
I was using RethinkDB in my last project, with JSData because it offers a great and simple API. Like another DB's, rethinkdb doenst support `unique` constraints, and the developers comunity...
Fixes #15 (it's a good idea to open an issue first for discussion) - [ ] - `npm test` succeeds - [ ] - Code coverage does not decrease (if...
Whenever I use `orderBy` with a date the results are never consistent. With this code: ```js export const SurveyError = defineMapper({ name: 'SurveyError', }) function populate () { const fullDay...
I tried ``` User.findAll({where: {tags: {"contains": "a"}}}).then(..) ``` But got ``` error ReqlDriverError {message: "Annonymous function returned `undefined`. Did you forget a `return`?"} ``` It works in `filter()` though. So...
I'm testing the implementation of the keyword 'containsArray' in where clause. Find subarray value in array field ``` 'containsArray': function _containsArray(r, row, field, value) { return row(field).default([]).setIntersection(r.expr(value).default([])).count().eq(value.length); } ``` ```...
Hi. After further investigation, I've added support for contains/notContains matching against an array field, and like/notLike matching against a string field. The like/notLike operators bring parity with the js-data-sql adapter....
Example: ``` js adapter.findAll(User, { where: { age: { '>': 30 }, status: 'unknown' } }); ``` Let's say there is a secondary index setup on the "status" field. In...
``` this works return rethinkdbAdapter.r.table('limits').filter({'user': {'user_id': user_id}}).run(); // this does not return Limit.findAll({where: {'user.user_id': {'==': user_id}}}); // this does not work either return Limit.findAll({'user.user_id': user_id}); ```