Bug in manual? Or did I mix up collection factory vs factory?

On Collection factory manual it says

A prefix /collection[N]/, where [N] is a counter, is added to the id to uniquely identify each instance:

But in my code I saw /instance[N] instead.

Correct me if I’m wrong.

You’re mixing it up. Example collection factory IDs:


{ --[[0x10ecdbf90]]
  hash: [/container] = hash: [/collection1/container],
  hash: [/double_target_holder] = hash: [/collection1/double_target_holder],
  hash: [/double_target_1] = hash: [/collection1/double_target_1],
  hash: [/double_target_2] = hash: [/collection1/double_target_2]
}

it is from factory.create() not from collectionfactory.create()

1 Like