Open oliverw opened 13 years ago
I began to implement this feature but after getting into it, figured out that this type of query isn't supported by mongodb. In other words, there is no way to accomplish this.
Do you have any ideas on how it can be implemented?
Hmm I was referring to this:
http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%24all
Yeah, I thought so. That doesn't translate into the "All" linq method. In fact, I don't think it translates into a linq method at all. How do you propose this be supported?
Hehe but I wasn't referring the Linq All() method but functionality equivalent to what the MongoDb $all operator does :)
Yeah, I got that after you answered.
Still, my question remains, what syntax would you like to support this type of query? I don't think there are any built-in operators that do this.
I'm no expert in writing Linq Providers. Couldn't that go into an extension method in a driver specific class?
Ok, so you're asking for this in a way that would translate to other linq providers. I'll mark this as a feature request.
It would be nice if $all would be supported using Linq.