AtnNn / librethinkdbxx

RethinkDB driver for C++
Other
98 stars 31 forks source link

Replacing documents #4

Closed Maarten-p closed 8 years ago

Maarten-p commented 9 years ago

Is the replace() command already implemented? And what is the type of the JSON object that needs to be used as input? I tried a normal string but that didn't work. It would be nice if you could put up an example where you add something to the database.

AtnNn commented 9 years ago

The replace command is implemented and can be used just like in Python.

There are many ways of constructing an object that can be passed to replace: