M
M
Maxim2015-03-31 10:55:55
MongoDB
Maxim, 2015-03-31 10:55:55

How to store an element from another table in a Mongo table element?

There is a table of events. It has an 'owner' field and should contain an element from another 'users' table.
In mongo I'm not strong at all, tell me where to dig?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Kitmanov, 2015-03-31
Antonikhin @STJ

You have mongoose in your tags, why don't you read the documentation?) mongoosejs.com/docs/populate.html

A
Anatoly Zhukov, 2015-03-31
@Skuayer

look at this docs.mongodb.org/manual/reference/database-references

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question