collections:
user:
_id
name
password
and
usermeta:
_id
userid
meta
value
and i must to get all users with user meta and send it with express.
how can i do it?
for each user with an ~id find corresponding their metadata and map both into new object with both merged data. so as above where is the issue?
Обсуждают сегодня