You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for opening a bug report, @mCassanoNsi! Seems like you've managed to identify the root cause of the issue; Would you like to submit a PR for review?
Hello, I can certainly fix the bug and submit a PR. I wanted to add a non-regression test for this specific case, but I've noticed that all tests about the include parameter are on loopback-datasource-juggler, and none would catch this error. Should I add one anyway to the connector suite?
Steps to reproduce
Model A belongsTo ModelB
Model A has properties id, A, B, C, modelBId
Model B has properties id, A, D, E
Make any query without specifying scope: fields for the included models:
{
fields: ['id', 'A', 'modelB'],
include: ['modelB']
}
Current Behavior
result is as follows: [{id, A, modelB: {id, A}}]
Expected Behavior
included models should have all properties: [{id, A, modelB: {id, A, D, E}}]
Additional information
Bug introduced in latest minor version, mongodb.js:1403
The text was updated successfully, but these errors were encountered: