HF RL Explorer

Task: Check if a MongoDB Index Exists Before Creating It

Task: Check if a MongoDB Index Exists Before Creating It: a task in Terminal-Lego-15k (Harbor dataset). Write a MongoDB shell script that conditionally creates indexes on a collection only if they do not already exist. The script must be idempotent — running it multiple times should not produce…

Part of PrimeIntellect/Terminal-Lego-15k.