Create the query that fetches a random question of a particular difficulty.
This relies on changes coming from #29 that integrate an enum used to standardise references to difficulty throughout the code base.
This PR shrinks the question queries all the way down because we can now rely on the enum to ensure valid difficulties are used, meaning no need more getRandomEasyQuestion, getRandomMediumQuestion, getRandomHardQuestion.
Create the query that fetches a random question of a particular difficulty.
This relies on changes coming from #29 that integrate an enum used to standardise references to
difficulty
throughout the code base.This PR shrinks the question queries all the way down because we can now rely on the enum to ensure valid difficulties are used, meaning no need more
getRandomEasyQuestion
,getRandomMediumQuestion
,getRandomHardQuestion
.