Try achieving this using the entity service API. You may want to check this out: Entity Service API - Strapi Developer Docs