Strapi v4 fields param not working after upgrade?

I have upgraded from strapi version 4.10.2 to 4.25.4. I have a /faculty endpoint and as a child entity a /teacher entity. Before the upgrade, I would make a call like this:

/api/faculty?fields[0]=teacher.lastName and the response would only return the last name of all teachers. After the upgrade, I am getting a 400 error from this same call:

“Invalid parameter teacher.lastName”

Was there some update to way fields param works?

This topic has been created from a Discord post (1268266261247299615) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord