BSB Node.js Type Definitions
    Preparing search index...

    Function nullable

    • Mark a type as nullable. Nullable fields can have null values in addition to their defined type.

      Type Parameters

      Parameters

      • type: T

      Returns T

      const UserSchema = bsb.object({
      lastLogin: nullable(bsb.datetime('Last login time')),
      });