Skip to content
KeystoneJS LogoKeystoneJSv5

Integer

Usage

keystone.createList('Review', {
  fields: {
    comments: { type: Text },
    rating: { type: Integer },
  },
});

Config

OptionTypeDefaultDescription
isRequiredBooleanfalseDoes this field require a value?
isUniqueBooleanfalseAdds a unique index that allows only unique values to be stored

Have you found a mistake, something that is missing, or could be improved on this page? Please edit the Markdown file on GitHub and submit a PR with your changes.

Edit Page