Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diffrent between Moleculer-db default crud Create Vs Moleculer db sequlize adaptor insert #282

Open
sachinda123456 opened this issue Sep 7, 2021 · 0 comments

Comments

@sachinda123456
Copy link

sachinda123456 commented 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

@sachinda123456 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant