groupby multiple things

the SQL query I want to convert ends with:
GROUP BY 
  u.user_id,
  e.ExerciseID;
I see no where in the docs for multiple groupBy however would expect this would work:
  .groupBy([
    users.user_id,
    exercises.ExerciseID
  ]);
how to achieve this?
Was this page helpful?