return Group.findOne({'members._id':id}).then((groupUserIsIn) =>{
return groupUserIsIn;
});
Group
is a database Schema (MongoDB)
Is this promise resolved with the value groupUserIsIn
? To access this value, we need another promise with a .then
?