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
Hi im beginner for Moleculerjs . I have a controller called user . It has few data field . I need to create user . One option i have will able to call molecule-db default crud function via ctx.call(user.create,{}) . Other option i have i will able to call adapter.insert Inside of my controller . According to my understanding when i used first option (user.create) data validate thought entity validator . But if i used adapter.insert i think i will ignore entity validator and its just like MySQL insert . Can you explain which is the best practice for this scenario
The text was updated successfully, but these errors were encountered:
sachinda123456
changed the title
Diffrent between Moleculer-db default crud Vs Moleculer db sequlize adaptor insert
Diffrent between Moleculer-db default crud Create Vs Moleculer db sequlize adaptor insert
Sep 7, 2021
Hi im beginner for Moleculerjs . I have a controller called user . It has few data field . I need to create user . One option i have will able to call molecule-db default crud function via ctx.call(user.create,{}) . Other option i have i will able to call adapter.insert Inside of my controller . According to my understanding when i used first option (user.create) data validate thought entity validator . But if i used adapter.insert i think i will ignore entity validator and its just like MySQL insert . Can you explain which is the best practice for this scenario
The text was updated successfully, but these errors were encountered: