Getting meta().id with Covering Index

query
n1ql

#1

I am trying to get a query covered by a covering index. Whenever i try to include meta().id in the SELECT it is not covered by the index. In version 4.5 including meta().id seems to be working. Is that an issue with version 4.1.0?


ParameterizedN1qlQuery with IN statement
#2

Yes, this is fixed in 4.5 and not 4.1. The workaround in 4.1 is to explicitly add META().id as a key in your secondary index.