doc['type'] as the new default