-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Referencing nested array fields in typed Mongo #422
Comments
Hi,
|
Just specifying the path to the field inside array ( |
Oh, nice, I didn't know about that. We will add support for it. |
@AvaPL FYI: I hoped to do this quickly but it turned out to be somewhat annoying, mostly because of binary compatibility issues. We're still planning to do this one way or another. |
No pressure, thank you for the information. |
There's another use-case for Currently we do this kind of workaround, which works for queries and indexes, but it probably fails for updates. final val InnerIntRef: Ref[Int] = FieldRef(ref(_.innerList), "int", implicitly, Opt.Empty) |
Assuming a hierarchy like this:
How can I construct a projection so that only
innerList.int
fields are returned? I know I can reference the fields at particular index of the list, eg.RecordTestEntity.ref(_.innerList.head.int)
, but I would like to achieve something like this:RecordTestEntity.ref(_.innerList.map(_.int))
. Is it possible?The text was updated successfully, but these errors were encountered: