Nah - certainly not resource.name. Perhaps like: record[resource._id.name] ?