Sanity Library Reference Docs
    Preparing search index...

    Interface AgentActionTargetIncludeBeta

    interface AgentActionTargetInclude {
        path: AgentActionPathSegment | AgentActionPath;
        exclude?: AgentActionPathSegment[];
        types?: AgentActionTypeConfig;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    By default, all children up to target.maxPathDepth are included. Fields or array items not on the exclude list, are implicitly included.

    Types can be used to exclude array item types or all fields directly under the target path of a certain type. If you do exclude: ['string'] all string fields under the target will be excluded, for instance.

    types.include and types.exclude are mutually exclusive.