Skip to content
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

Exception User Unhandled once left join is exectuted #371

Open
locampoArkus opened this issue Oct 13, 2023 · 1 comment
Open

Exception User Unhandled once left join is exectuted #371

locampoArkus opened this issue Oct 13, 2023 · 1 comment
Labels
affects-querying Query-related issue bug

Comments

@locampoArkus
Copy link

Exception User Unhandled
System.Reflection.TargetInvocationException: 'Exception has been thrown by the target of an invocation.'
NotSupportedException: $project or $group does not support {document}.

Same query was runned using MongoDB Driver tool and works perfectly, but using mongoframework thrown this exception.
image

@Turnerj
Copy link
Member

Turnerj commented Oct 13, 2023

I'm going to guess it is likely due to this line:

settings.LinqProvider = MongoDB.Driver.Linq.LinqProvider.V2;

Basically within the MongoDB Driver, they have multiple implementations of the LINQ-backed system. V3 is the default as of 2.14 or something and improves various types of queries. Unfortunately V3 also breaks a bunch of internal hooks that MongoFramework uses and I haven't yet had the time to fix all the issues.

I thought I had a draft PR up of my progress for it but I guess I never pushed it - will have to dig that up at some point.

@Turnerj Turnerj added bug affects-querying Query-related issue labels Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-querying Query-related issue bug
Projects
None yet
Development

No branches or pull requests

2 participants