Description
Add to https://docs.couchbase.com/server/current/n1ql/n1ql-language-reference/metafun.html#meta a NOTE or example showing how to retrieve document virtual XATTRs, likely with a cross-link to https://docs.couchbase.com/server/current/learn/data/extended-attributes-fundamentals.html#virtual-extended-attributes.
It should note clearly that access to virtual xattrs is an expensive operation that will impact query latency.
e.g.
select meta().xattrs.`$document` from default use keys["key1"] |
...
|
"results": [ |
{
|
"$document": { |
"CAS": "0x16e978130d8f0000", |
"datatype": [ |
"json" |
],
|
"deleted": false, |
"exptime": 0, |
"flags": 0, |
"last_modified": "1650982761", |
"revid": "10", |
"seqno": "0x000000000000000a", |
"value_bytes": 3, |
"value_crc32c": "0xf01f9d27", |
"vbucket_uuid": "0x0000563f86001ada" |
}
|
}
|
],
|