Replies: 1 comment 6 replies
-
| Ups, got confused with your partially working workaround with dot paths, since that is not what you should be doing and will fail with inlined mode, and when trying it out I used an inlined embedded property, which works just fine. You are correct that with object embedded property it's failing the way you mentioned, I believe that is the main thing that needs to be solved. And yeah, I also completely missed your reproduction 🤦 I guess its too hot in here :P |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
Hey !
I'm trying to sort on embedded field but got these error:
I notice strange behavior:
It work's with flatten key.
But didn't works with
firstoption (I'm trying to sort with cursor)The query generated (we can see that order by isn't here):
As far as I debugged, I think that there is an issue here:
mikro-orm/packages/core/src/utils/Cursor.ts
Line 185 in 8b30ae2
details_datearrivalbut the key isdetails.date.arrival.Reproduction
What driver are you using?
@mikro-orm/mongodb
MikroORM version
6.3.8
Node.js version
20
Operating system
node:20 docker image
Validations
Beta Was this translation helpful? Give feedback.
All reactions