WiredTiger prefix compression for index on MongoDB
By default collection stats only include information on the collection data (which uses block-level compression rather than prefix compression).

To see index details you need to provide an additional indexDetails option, eg:

db.myCollection.stats({indexDetails:true}).indexDetails._id_.creationString


You should see "prefix_compression=true" in the index creationString value.