Skip to content
KeystoneJS LogoKeystoneJS (α)

Float

Usage

keystone.createList('SensorReading', {
  fields: {
    loggedAt: { type: DateTime, isRequired: true },
    temperature: { type: Float, isRequired: true },
    humidity: { type: Float },
  },
});

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