How do I assign an array to a prefab?

I want to assign an array of transforms (or gameobjects if necessary) to a prefab that I want to instantiate. In-depth, this prefab is an NPC that I want to spawn using a coroutine. Once spawned, I want it to walk along a path of set waypoints. The problem is that I can’t save the array when serialized in the inspector. I know how to assign individual objects via code, but not arrays.

What part is not working? You can assign files to prefabs as far as I know.
And look up some c# basics on arrays if you don’t know how to use them