Is it possible to UPDATE document key with N1QL?

Hi,

I want to change my document key with N1QL.
I tried this statement :
UPDATEmyBucketUSE KEYS "key" SET meta(myBucket).id = "Super::key" RETURNING *;

But it’s not working, and I get this issue:
"msg": "syntax error - at ("

Do you have any idea, how to fix it?

Thanks in advance!
Damien

You cannot update the document key.

1 Like