Autoform array of objects - default collapsed

On default in insert and update -quickforms fields defined as “array of objects” have “new empty object” like this:
image

How to get forms render array of objects items collapsed like this if they contain no data:
image

  • On insert form fields should always be on default collapsed.
  • On update forms fields should be collapsed if field DOES NOT CONTAIN any data.

The trick is to specify this in the schema:

autoform: {
  initialCount: 0
}

This isn’t well-documented, but I found the answer at https://stackoverflow.com/a/30953641/724455