How to query through a DBRef in MongoDB/pymongo?
Posted
by Soviut
on Stack Overflow
See other posts from Stack Overflow
or by Soviut
Published on 2010-05-19T16:33:23Z
Indexed on
2010/05/19
18:00 UTC
Read the original article
Hit count: 426
Is it possible to query through a DBRef using a single find spec?
user collection
{
'age': 30
}
post collection
{
'user': DBRef('user', ...)
}
Is it possible to query for all post who's users are 30 in a single find step? If not, would it be wise to create a javascript function to handle the multi-stage operation or will that cause blocking problems?
© Stack Overflow or respective owner