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
When trying to create new object using mytable.Create I'm getting result back correctly although in the db the field "time" is empty object {}
I've tested the data with the Joi schema and it's all valid, and as I said, even Vogels return the "saved" object correctly - but still in the DB the field is empty.
When I'm removing the "when" condition, it's all working perfectly and the field is populated correctly in the DB.
Any help would be greatly appreciated on this.
Thanks in advance
The text was updated successfully, but these errors were encountered:
I've been trying to add conditional validation in my schema using joi.when as following:
When trying to create new object using
mytable.Create
I'm getting result back correctly although in the db the field "time" is empty object{}
I've tested the data with the Joi schema and it's all valid, and as I said, even Vogels return the "saved" object correctly - but still in the DB the field is empty.
When I'm removing the "when" condition, it's all working perfectly and the field is populated correctly in the DB.
Any help would be greatly appreciated on this.
Thanks in advance
The text was updated successfully, but these errors were encountered: