Sanity Library Reference Docs
    Preparing search index...
    • Every spawn reference a definition carries, as logical LogicalRef entries — the definition's outgoing edges in the spawn-dependency graph. The one walk deploy ordering, delete's referrer check, and external dependency tooling all share, so what counts as a reference can never drift between them.

      Parameters

      • def: {
            description?: string;
            fields?: FieldEntry[];
            groups?: Group[];
            initialStage: string;
            lifecycle?: WorkflowLifecycle;
            name: string;
            predicates?: Record<string, string>;
            roleAliases?: RoleAliases;
            semantics?: Semantic[];
            stages: Stage[];
            start?: StartBlock;
            title: string;
        }

      Returns LogicalRef[]