Expiry on the document is always 0 when meta() information is retrieved

META() function returns expiration value to 0 Indexing Metadata Information | Couchbase Docs . In 6.6.0 and above If you use META().expiration it will returns right value.
To retrieve expiration it needs special call(avoid over head special call is made when the META().expiration referenced explicitly in the query).

1 Like