loopback-connector-elastic-search icon indicating copy to clipboard operation
loopback-connector-elastic-search copied to clipboard

Fail fast for mismatched field values

Open pulkitsinghal opened this issue 9 years ago • 0 comments

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.

pulkitsinghal avatar Jul 02 '15 13:07 pulkitsinghal