a user:
const newUser = await User.create({ username, password });
Then I want to return to the client the user, but without sensible fields (like password, for example.) How would I do that?
is hashing the password on creation an option?
Sounds like you want some Ramda sexiness (R.omit)
Обсуждают сегодня