Answer the question
In order to leave comments, you need to log in
MongoDB doesn't want to return certain parameters, what should I do?
Ohh ... Something is wrong with me again. In general, I make a request to output data from the database to the console. It returns the full promise to me, although I specify the returned fields as the second parameter. Also I tried to attribute let spokesWatch = spokes.findOne({userID: message.senderId}, {userID: 1, screen: 1, _id: 0}).pretty() to pretty() method, TypeError: spokes.findOne in console (...).pretty is not a function
The code thinks that pretty() is a function, what should I do? Before that, my files cyclically referred to each other, I combined everything into one. Link code:
https://qna.habr.com/q/1071802?e=11947742#clarific...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question