// To check which fields are indexed Product.collection .getIndexes({ full: true }) .then((indexes) => { console.log('indexes:', indexes); }) .catch(console.error); // To check if indexing works (async () => { const result = await Product.find( { friendlyName: 'Nice other Name' }, '_id' ).explain('executionStats'); console.log(result); })();