resolve documents from params
add `Collection.index`
make `Sku.Code` unique