rethinkdb

adrien 2016-08-02T20:28:12.000235Z

hello

adrien 2016-08-02T20:28:43.000236Z

I started using the client from apa512

adrien 2016-08-02T20:28:52.000237Z

works well, I'm happy with it

adrien 2016-08-02T20:29:11.000238Z

I don't understand how the changes work

adrien 2016-08-02T20:29:42.000239Z

I get something like this:

adrien 2016-08-02T20:29:47.000240Z

(def changes (r/run (r/changes (r/get (r/table "plots") plot)) conn))

adrien 2016-08-02T20:30:05.000241Z

where plot is the id of the document

adrien 2016-08-02T20:30:36.000242Z

I get a #object[rethinkdb.net.Cursor 0x7d1c023f "rethinkdb.net.Cursor@7d1c023f"]

adrien 2016-08-02T20:30:45.000243Z

but I don't know how to consume it

adrien 2016-08-02T20:31:05.000244Z

do you have some indications?

adrien 2016-08-02T22:57:57.000246Z

I was misusing r/changes this works:

adrien 2016-08-02T22:58:06.000247Z

(def changes
  (-> 
   (r/table "plots")
   (r/get plot)
   r/changes
   (r/run conn)))

adrien 2016-08-02T22:58:33.000248Z

then I can get the elements with first for example

adrien 2016-08-02T22:59:02.000249Z

found it through a github issue: https://github.com/apa512/clj-rethinkdb/issues/164

adrien 2016-08-02T22:59:25.000251Z

still a lot to learn, and it's nice 🙂

adrien 2016-08-02T22:59:44.000252Z

thanks for putting up the library! that's a lot of work!