Objection.js: [Question] "Duplicate relation in a relation expression"

Created on 25 Jul 2018  路  2Comments  路  Source: Vincit/objection.js

Raw Warning
Duplicate relation "guilds" in a relation expression. You should use "a.[b, c]" instead of "[a.b, a.c]". This will cause an error in objection 2.0

Can somebody explain what this is ?

All 2 comments

I cannot explain it better than that error message. a is the duplicate relation in that error message.

I know it is a bit late, but but please check if you have the duplication within you eager() option. We had the same issue for model.query().select("...").eager(something, a, a.b)

Was this page helpful?
0 / 5 - 0 ratings