Sporades SDK API
    Preparing search index...

    Type Alias FieldBuilder<Value>

    Builder returned by a Sporades field helper such as String() or Boolean().

    Field builders describe app schema. Call .default(...) when a field should be filled automatically during inserts that omit it.

    import { Boolean, String, table } from "sporades/server";

    const todos = table({
    text: String(),
    done: Boolean().default(false),
    });
    type FieldBuilder<Value> = {
        kind: FieldKind;
        default(defaultValue: Value): FieldDefinition<Value>;
    }

    Type Parameters

    • Value
    Index
    kind: FieldKind