Create doc store or embedded doc