kclay / rethink-scala

Scala Driver for RethinkDB
Other
100 stars 24 forks source link

Fixed using r.row when updating #26

Closed kclay closed 9 years ago

kclay commented 9 years ago
r.db(“db”).table[Table1Type](“table1”).get(“id”).update(Map(“attr1” -> r.row(“attr1”).append(newCollectionItem))).run

but I get the following error:

c.r.n.JsonVersionHandler - UnCaught Exception token not resolved com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate value of type [simple type, class com.rethinkscala.net.Frame] from Integral number (1); no single-int-arg constructor/factory method at [Source: {"t":17,"r":["r.row is not defined in this context."],"b":[1,"messages",0,0]}; line: 1, column: 60]