Meteor 将架构中的标签设置为false无效

Meteor 将架构中的标签设置为false无效,meteor,meteor-autoform,simple-schema,Meteor,Meteor Autoform,Simple Schema,我正在尝试删除架构中的标签。每次我将其设置为false时,它都会出错或不执行任何操作 Schema.User = new SimpleSchema({ classifications: { type: Schema.Classification, optional: true, label: false } }); 标签是一个字符串。将其设置为字符串或从架构中忽略它: Schema.User = new SimpleSchema(

我正在尝试删除架构中的标签。每次我将其设置为false时,它都会出错或不执行任何操作

Schema.User = new SimpleSchema({
    classifications: {
        type: Schema.Classification,
        optional: true,
        label: false
    }
});

标签
是一个字符串。将其设置为字符串或从架构中忽略它:

Schema.User = new SimpleSchema({
    classifications: {
        type: Schema.Classification,
        optional: true
    }
});

是的,当我像
{>afQuickField name='profile.classifications.classification'}}
那样访问它时,我想阻止它将
分类
打印为标签。如果您希望在自动表单类型的表单中“隐藏”字段,那么您需要添加:
自动表单:{type:“hidden”