How to use model in models
folder inside index.js?
#16029
Unanswered
paul-uz
asked this question in
Help & Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to follow the documentation, and I have a User model in a
models
folder, but for the live of me, I cannot bring it into my index.js file. I have tried all combinations ofrequire
but it simply won't work.throws an error: "TypeError: User.create is not a function"
user.js
Beta Was this translation helpful? Give feedback.
All reactions