Hi all. I’d appreciate it if someone could take a ...
# getting-started
e
Hi all. I’d appreciate it if someone could take a look here and help me out: https://stackoverflow.com/questions/75583729/using-kproperty-with-list-of-objects
i
Since in mongo this query would look like
{"bars.thingy": "thingy"}
, my guess in kotlin it should be mapped similar way
Foo::bars / Bar::thingy
Just checked, it is more type-safe than I supposed, it allows only nested properties, so my suggestion won't work
Then I believe the first workaround I can think of is
Copy code
Foo::bars elemMatch (Bar::thingy isEqualTo "thingy")
e
Thanks Ivan. I’ll try that
That does work. @Ivan Pavlov can I tag you on stack overflow for that answer? Or would you like to post this yourself to get credit?
i
I posted an answer on SO
e
thanks!