Skip to main content
Version: v10.0.0

FieldRef

A reference to one row field, received by query callbacks such as where((post) => eq(post.teamId, 1)) .

Value is the field's type, so operators accept only values of that type.


Import
import { FieldRef } from "@hyper-fetch/db"

Preview​

type FieldRef<Name,Value> = {
__value?: Value;
field: Name;
kind: field;
}

Structure​

FieldRef
NameTypeDescription
__value
Value

Type-only marker, never set at runtime

field
Name
kind
field