Subquery doesn't work in leftJoin clause with auto indexing #494
samwillis assignedkevin-dp
samwillis changed the title
KyleAMathews closed this
Sign in to join this conversation.
samwillis assignedkevin-dp
samwillis changed the title
KyleAMathews closed this
Sign in to join this conversation.
Thanks for the report @Uziniii - it looks like there is a bug as this should work.
This appears to be an issue with the lazy loading of indexed collections in a join.
Two things to note, if you change the
leftJointo aninnerJoinorrightJoinit works, as does settingsautoIndex: 'off'on both source collection.I suspect the logic around marking a joined collection as lazy is not working when there is a sub query rather than collection.
@kevin-dp can you pick this one up?