[Database] What does the order field in files_related_morphs table do?

System Information
  • Strapi Version: 4.1.10
  • Operating System: Linux
  • Database: postgres 14.3
  • Node Version: 16.14.0
  • NPM Version: 8.3.1
  • Yarn Version: N/A

@DMehaffy answered this question for me on discord, but I’ll go ahead and post it here also that way I can google it in the future.

Derrick said:
for compos it’s the order of the compo if it’s a repeat one

(not just media but the repeat compo in general)

When you create a media component, you have the ability to select whether you want it to be repeatable or a single media file. If you tell it to be repeatable, the order is the index + 1 in the queried array. Otherwise, it is just 1.

1 Like

Indeed, thanks for copy this question here :slight_smile:

1 Like