You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I retrieve the project part of a client document by a specific ID (pid)? Is it possible without doing a client-side search like follows?
client=Client.objects(projects__id=pid).first()
forpinclient.projects:
ifstr(p.id) ==project_id:
# found project; cumbersome, what is a better solution?
With plain mongodb, I'm able to retrieve the client with only the matched project instead of getting all its projects. Is this also possible with mongoengine?
Hi,
I have the following simplified data structures:
How can I retrieve the project part of a client document by a specific ID (pid)? Is it possible without doing a client-side search like follows?
With plain mongodb, I'm able to retrieve the client with only the matched project instead of getting all its projects. Is this also possible with mongoengine?
Then, how is it possible to update a specific project? This is what I tried but it did not work:
Thanks a lot!
Michael
The text was updated successfully, but these errors were encountered: