Sanity Library Reference Docs
    Preparing search index...

    Interface ReferenceTypeFilterContext

    Context object passed to the creationTypeFilter callback.

    interface ReferenceTypeFilterContext {
        document: SanityDocument;
        parent?: Record<string, unknown> | Record<string, unknown>[];
        parentPath: Path;
    }
    Index

    Properties

    document: SanityDocument

    The current document being edited

    parent?: Record<string, unknown> | Record<string, unknown>[]

    The parent value containing this reference field

    parentPath: Path

    The path to the parent value in the document