Replacing the document key?

Can you post some code of what you’re trying to do?

The Result objects are read only… you can simply do:

value = cb.get('oldkey').value
value['field'] = 'newvalue'
cb.upsert('newkey', value)
1 Like