Orca Note Plugin API Documentation
    Preparing search index...

    Interface QueryDescription

    Describes a query for searching and filtering blocks. Used to construct complex queries that can combine multiple conditions.

    interface QueryDescription {
        asCalendar?: {
            end: Date;
            field: "journal" | "created" | "modified";
            start: Date;
        };
        asTable?: boolean;
        excludeId?: number;
        group?: string;
        groupBy?: string;
        page?: number;
        pageSize?: number;
        q?: QueryGroup;
        sort?: QuerySort[];
        stats?: QueryStat[];
        tagName?: string;
    }
    Index

    Properties

    asCalendar?: {
        end: Date;
        field: "journal" | "created" | "modified";
        start: Date;
    }

    Calendar view configuration if results should be displayed in calendar format

    Type declaration

    • end: Date

      End date for the calendar range

    • field: "journal" | "created" | "modified"

      Field to use for calendar date (created/modified/journal date)

    • start: Date

      Start date for the calendar range

    asTable?: boolean

    Whether to format results as a table

    excludeId?: number

    Optional block ID to exclude from results

    group?: string

    Specifies which group to return results for

    groupBy?: string

    Field to group results by

    page?: number

    For paginated results, the page number (0-based)

    pageSize?: number

    For paginated results, the number of items per page

    The main query group with conditions

    sort?: QuerySort[]

    Array of sort specifications for ordering results

    stats?: QueryStat[]

    Statistical calculations to perform on results

    tagName?: string

    Filters results to blocks with a specific tag