Attachment with createMany

System Information
  • Strapi Version: 4.0.7
  • Operating System: Debian GNU/Linux 10
  • Database: mySQL 8.0.15
  • Node Version: 12.22.8
  • NPM Version: 6.14.15
  • Yarn Version: 1.22.17

Hey guys,
I created a custom service to Insert Records (using: createMany) and this one works perfectly.

But now, in a new project, my collection has media file field (a single pdf file).
So the challenge now is: Send a record array, however some or all of them may contain a pdf file attached.

This can be done?
Has anyone had this experience?

Well, any help will be appreciated!

I have started using Strapi recently.
Could you give me an idea of using createMany() for inserting records?
I am also looking for such functionality.

Thank you for any help.