Query relation subfield

System Information
  • Strapi Version: 3.2.2
  • Operating System: Linux
  • Database: Postgres
  • Node Version: v12.18.2
  • NPM Version: 6.14.5
  • Yarn Version: 1.22.4

I would like to know if is there a way i can use the find methods to filter with a relation subfield?

i tried to do this:
await strapi.query(“user”,“users-permissions”).find({ ‘settings.name’: ‘sample’});

but it didnt worked