How to read and write array and objects to simple database

I do not know how to write and read simple data structures like arrays and objects from a database like RethinkDB.

I have Node.js installed. I have RethinkDB connected. Ports open.

All I need is a simple database that accepts JS objects from any outside program.

I do not care about any security risks associated with having an open server-side database at the moment. Security doesn’t matter if I cannot get it to work in the first place.