How to select only a relation field

System Information
  • Strapi Version: 4.9
  • Operating System: MacOS
  • Database: Postgres

I am trying to only get the memorias “field” which is actually a many to many relationship to the content type memoria. If I remove the select, everything works fine. It’s just that, I don’t want my server to have to process the whole information.

Second Question: How do I get the id’s in the relationship without populating all the fields


please use the entity service and not db.quary

then you can do populate: {memorias: { fields: ["list","of","fields"] }} to get the right result

1 Like