Get userinfo from createdBy and updatedBy v4

I am with the same problem, but for me I receive in terminal:
Error: Undefined attribute level operator populate
EDIT: I achieved! My problem was:
const entity = await strapi.service(‘api::produto.produto’).findOne({ … }) (I had got it at documentation)
when it should be: const entity = await strapi.db.query(‘api::produto.produto’).findOne({ … })