Monday 12 February 2018

Some noob doubts about Objection.js json schema.

When is the JSON schema used?Is it used to validate the JSON that's provided while inserting or patching? Or is it used to validate the JSON form of the Model object itself?If its the latter case, do I need to mention the createdAt and updatedAt properties which are set automatically using $beforeInsert and $beforeUpdate hooks?

Submitted February 12, 2018 at 12:34PM by sioa

No comments:

Post a Comment