fields such as IDuser , IDMusic and ...
                  
                  
                  
                  
                  
                  when I find a collection records with mongoose I want to add field to all of found docuemnts
                  
                  
                  and fill this field with true for specified IDuser for example
                  
                  
                  
                  
                  
                  How can I do it ?
                  
                  
                
var yourNewResult = yourResult.map(x => yourCondition ? x["yourField"] = true : x["yourField"] = false );
Обсуждают сегодня