-
Assume we have:
```
A hasMany B
B hasMany C
C hasOne D
```
Now we have A object. And I want to query D with limit 10 using innerJoin.
something like:
```js
let ds = a.$relatedQuery('bs.cs.d…
-
Hey, first off thanks for building this. I just got started using `objection.js` and I love it. The docs are great as well. I'm trying to insert new objects into Postgres and running into some problem…
-
I have a model that's defined like this
[User] - hasOne -> [Profile]
[Profile] - belongsTo -> [User]
There is a `Profile.user_id` field that needs to be populated.
When I try
```
User.qu…
-
I've been experiencing some strange behavior when inserting to postgres and performing case conversions going to and from the database.
Please see the test project I have put together: https://gith…
-
Hi all,
thanks for great work.
I just wondering if it is possible to use `left join table1 ` instead of `left join (select * from table1)` on eager join.
seems join on table is much more faster t…
-
Seemingly out of the blue (I think it was working as-expected before), I'm having an issue when using a function from another module as the default for a field on a schema. I've played around with it …
-
Hello,
I'm having trouble with relations between tables,
I have a `movies` table like this:
```
Movies.relationMappings = {
showings: {
relation: Model.HasManyRelation,
modelCla…
-
Hey there,
I was wondering how you'd go about implementing "activity logging" using objectionjs. Bookshelf, for example, gives some nice hooks on its model objects like "onCreated", "onSaved", etc. w…
-
Hi all,
Just started working with Thinky & RethinkDB last week and am really liking it so far! Very nice work!
I'm working on two models now, Class and User with the following properties:
- A User …
-
I am trying to translate this migration to db-migrate: https://github.com/Vincit/objection.js/blob/master/examples/express-es7/migrations/20150613161239_initial_schema.js
I have tried both using `cr…