mfenniak / rethinkdb-net

A C# / .NET client driver for RethinkDB.
Other
247 stars 37 forks source link

Programmatically composable queries #215

Closed mfenniak closed 9 years ago

mfenniak commented 9 years ago

I'd like rethinkdb-net to support situations like "if this checkbox is checked in the UI, add this filter to this query". I'm not sure how you'd do that with the current LINQ expression tree approach to building queries, but it might be possible. I'd like to investigate this, add support if necessary, and add an example or unit test that shows the usage.

jonorossi commented 9 years ago

I assume you mean something like the Building ReQL queries on multiple lines section for python?

mfenniak commented 9 years ago

Yes, that's what I had in mind.

Although, the examples of how they do that in the Python driver are actually very applicable to rethinkdb-net. I'm not sure why I didn't think of that. I was daydreaming about how to compose the LINQ expressions, but, it's very easy to stack the query operations.