We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QueryBuilder has a convenient method tableRef which returns the alias for the model the query builder operates against:
tableRef
objection.js/lib/queryBuilder/QueryBuilder.js
Lines 87 to 89 in 1b74f75
However it's not exposed in typings and not mentioned in the documentation. Can we add it?
On a side note, its implementation clearly contradicts the typings for tableRefFor:
tableRefFor
objection.js/typings/objection/index.d.ts
Lines 615 to 617 in 1b74f75
the method is supposed to accept a model class, but the actual implementation passes a string.
The text was updated successfully, but these errors were encountered:
Thanks for pointing this out. Would you be willing to submit a PR to fix this?
Sorry, something went wrong.
Sure.
No branches or pull requests
QueryBuilder has a convenient method
tableRef
which returns the alias for the model the query builder operates against:objection.js/lib/queryBuilder/QueryBuilder.js
Lines 87 to 89 in 1b74f75
However it's not exposed in typings and not mentioned in the documentation. Can we add it?
On a side note, its implementation clearly contradicts the typings for
tableRefFor
:objection.js/typings/objection/index.d.ts
Lines 615 to 617 in 1b74f75
the method is supposed to accept a model class, but the actual implementation passes a string.
The text was updated successfully, but these errors were encountered: