Can anyone please explain how to perform the $and filter rest api query with strapi v4? I am new to strapi and followed the guidance in the documentation but this does not work. Thanks alot!

I am trying to for example retrieve students who are enrolled in Maths and Physics:

student: {

 $and: [
   {
     course:{
      $eq: 'Maths'
     },
  },
   {
     id:{
       $eq: 'Physics'
     },
   },
 ]

}

With $or all students who are enrolled in either maths or physics are retrieved. With $and nothing is retrieved