Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

deekepMaks's avatar

Relationships and mongodb array

I have a collection:

{
    ...
    users: ["..some objectID", "another objectID"]
    ...
}

Can I use relationships to get information about these users from the User model or do I need to make a separate query?

0 likes
1 reply

Please or to participate in this conversation.