RethinkDb.Driver icon indicating copy to clipboard operation
RethinkDb.Driver copied to clipboard

Add support for between

Open jrote1 opened this issue 8 years ago • 4 comments

Add translation of queries like on indexes to use Between

  • .Where( x.Size > 5 && x.Size < 10 )
  • .Where( x.Date < DateTime.Now && x.Date > new DateTime( 2016, 1, 1 ) )

jrote1 avatar May 13 '16 21:05 jrote1

there any way now without linq?

ngonzalezromero avatar Jul 14 '16 00:07 ngonzalezromero

@ngonzalezromero

http://rethinkdb.com/api/java/between/


:heart: :european_castle: Illenium - Fortress (feat. Joni Fatora)

bchavez avatar Jul 14 '16 00:07 bchavez

@bchavez I need filter the data with a date range + a parameter

right now, i do this in mongo this way

markerDataRepository.Select(x => x.VersionDate >= from && x.VersionDate <= to && x.SubNetworkId == 1);

(from and to are DateTime) How can I do it with RethinkDb?

ngonzalezromero avatar Jul 14 '16 00:07 ngonzalezromero

Hey, @ngonzalezromero , I hope I'm not being too much of a square, but I'd appreciate it if we can keep issues (and issue discussions) reserved for changes to the source code. If you need help using the driver, it would be cool if you could use the RethinkDB slack channel. If nobody can help with your C# question, tag me @bchavez in your question.

The problem with using issues here as a means for help is that the 15 people subscribed to the repo watch list get spammed every time an issue/comment is added. :(

The RethinkDB slack channel is a great place because others can help also.

Thanks, Brian

:car: :police_car: :rotating_light: _"Drive it like you stole it..."_

bchavez avatar Jul 14 '16 00:07 bchavez