Query using document id

I am trying to write a query returning all documents with IDs included in an array. Can I access the document id in the "where"? _id seems not to work.

Workaround found, I decided to store the document ID also in a document string property, now I can operate with it.