bp123
bp123

Reputation: 3427

Setting label to false in schema not working

I'm trying to remove the label in schema. Every time I set it to false it errors or does nothing.

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

Upvotes: 1

Views: 51

Answers (1)

Stephen Woods
Stephen Woods

Reputation: 4049

label is a string. Either set it to a string or omit it from your schema:

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

Upvotes: 1

Related Questions