How to remove a key from a RethinkDB document?
问题 I'm trying to remove a key from a RethinkDB document. My approaches (which didn't work): r.db('db').table('user').replace(function(row){delete row["key"]; return row}) Other approach: r.db('db').table('user').update({key: null}) This one just sets row.key = null (which looks reasonable). Examples tested on rethinkdb data explorer through web UI. 回答1: Here's the relevant example from the documentation on RethinkDB's website: http://rethinkdb.com/docs/cookbook/python/#removing-a-field-from-a