6
r.table('test')
.get(1)
.update({things: r.row('things')????});
r.table('test')
.get(1)
.update({things: r.row('things')????});
आप एक सरणी में तत्वों को फ़िल्टर और update
के साथ करने के लिए पारित करने के लिए filter
के साथ update
आदेश का उपयोग कर सकते हैं।
r.table('30848200').get(1).update(function (row) {
return {
'things': row('things')
.filter(function (item) { return item('name').ne('b') })
}
})
मूल रूप से, आप सरणी फ़िल्टर की things
अधिलेखित हो जाएगा।