Sanity Library Reference Docs
    Preparing search index...

    Interface SearchOperatorBaseAlpha

    interface SearchOperatorBase {
        descriptionKey: `search.operator.${Lowercase<string>}.description`;
        icon?: ComponentType;
        nameKey: `search.operator.${Lowercase<string>}.name`;
        type: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    descriptionKey: `search.operator.${Lowercase<string>}.description`

    i18n resource key for the "name", eg quantity is or contains

    icon?: ComponentType

    icon for explaining the operator (React component)

    nameKey: `search.operator.${Lowercase<string>}.name`

    i18n resource key for the "name", eg quantity is or contains

    type: string

    name/type of operator, eg arrayCountEqual or numberGt