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
Pretty much the title. Here's the function that looks for relational fields:
Model.whichFieldsAreRelational = function (where) { return _.keys(where).filter((key) => { const headKey = key.split('.')[0]; return Model.relations[headKey]; }); };
if my relational fields are nested like this:
{ where: { or: [ { 'relation.field': someOperator } ] } }
they will be ignored. In simple cases you can flatten the 'where' and bring relation fields to the upper level, but it isn't always possible.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Pretty much the title.
Here's the function that looks for relational fields:
if my relational fields are nested like this:
they will be ignored. In simple cases you can flatten the 'where' and bring relation fields to the upper level, but it isn't always possible.
The text was updated successfully, but these errors were encountered: