Answer the question
In order to leave comments, you need to log in
How to get user value?
there are two teams. the findOne command looks for a user in the database and the create command creates a user in the database if it is not there.
the value of user will be the same in both cases, so how should I use it? After all, I will not write the same code in each function.
Answer the question
In order to leave comments, you need to log in
what are you using as an ORM? sequelize for example has docs.sequelizejs.com/en/v3/api/model/#findorcreate...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question