Objection.js: Add new method 'mergeAllowEager' to 'QueryBuilder'

Created on 5 Oct 2017  路  4Comments  路  Source: Vincit/objection.js

Add a QueryBuilder.mergeAllowEager method, which behaves similar to how QueryBuilder.mergeEager does.

enhancement good first issue help wanted

All 4 comments

Good idea! I'll do that.

Actually, here's a good first contribution if someone wants to create pull request.

Here's some pointers:

  1. See what mergeEager does. mergeAllowEager is pretty much the same.
  2. The method would need to be tested. See tests/unit/queryBuilder/QueryBuilder.js line 1165 for allowEager tests.
  3. The method must be documented. See the doc/includes/API.md file.

I've been meaning to tackle this one...will try and get to it this weekend...

Was this page helpful?
0 / 5 - 0 ratings