loopback-connector-elastic-search
loopback-connector-elastic-search copied to clipboard
Fail fast for mismatched field values
boot:create-model-instances (41) created +2ms
TeamModel { ownerId: '[email protected]', memberId: NaN, id: 1 }
As the log statement shows, currently life goes on (memberId: NaN
) and errors that crop-up because of a mismatch in field value versus field type are not caught on the spot but instead during user/end-2-end/functional testing.
Let's do something about this and fail fast to ensure that the developers know right away when something is wrong.