Alderaan said:
The Jedi mind trick scene was not successful with me, because it took me out of the film to think to myself, “wait? how does she know that? she doesn’t know that…”
Although I agree she learned it a little too quickly, it’s not impossible that she had been told about / heard about the Jedi mind trick at some point (she’s aware of Jedi Lore and the ‘legend’ of Luke Skywalker, so why not the Mind trick?). The Jedi mind trick is not a secret in the SW universe. Jabba knew about it, so maybe Rey does too. She finds herself a prisoner and she figures ‘I’ll give it a go’.
Don’t tell me you haven’t tried it yourself at least a couple of times… just in case 😉