I have following table structure -
{
"id": 1,
"prop": {
"1": {
"bunch-of-stuffs": "foo"
},
"2": {
"bunch-of-stuffs": "bar"
}
}
}
I want to remove "prop" with the key "2" so that it looks like:
{
"id": 1,
"prop": {
"1":{
"bunch-of-stuffs": "foo"
}
}
}
I have tried the update, but it doesn't work -
r.table("sad").get(1).update({"prop":{"1":{ "bunch-of-stuffs": "foo" }}})