Member Junction
    Preparing search index...

    Input type for UpdateQuery mutation calls - updates an existing query

    interface UpdateQueryInput {
        CategoryID?: string;
        CategoryPath?: string;
        Description?: string;
        ExecutionCostRank?: number;
        Feedback?: string;
        ID: string;
        Name?: string;
        OriginalSQL?: string;
        ParameterHints?: QueryParameterHintInput[];
        Permissions?: QueryPermissionInput[];
        QualityRank?: number;
        SQL?: string;
        Status?: "Pending" | "Approved" | "Rejected" | "Expired";
        TechnicalDescription?: string;
        UserQuestion?: string;
        UsesTemplate?: boolean;
    }
    Index

    Properties

    CategoryID?: string

    Optional category ID to move the query to

    CategoryPath?: string

    Optional category path for automatic hierarchy creation (e.g., "Reports/Sales/Monthly") - takes precedence over CategoryID

    Description?: string

    Optional general description of what the query does

    ExecutionCostRank?: number

    Optional execution cost indicator (higher = more expensive to run)

    Feedback?: string

    Optional user feedback about the query

    ID: string

    Required ID of the query to update

    Name?: string

    Optional name for the query (must be unique within category)

    OriginalSQL?: string

    Optional original SQL before optimization or modification

    ParameterHints?: QueryParameterHintInput[]

    Optional caller-provided parameter sample values. When provided, these override LLM-generated sampleValues during the extraction pipeline.

    Permissions?: QueryPermissionInput[]

    Optional array of permissions to update for the query (replaces existing permissions)

    QualityRank?: number

    Optional quality indicator (higher = better quality)

    SQL?: string

    Optional SQL query text to execute (can contain Nunjucks template syntax)

    Status?: "Pending" | "Approved" | "Rejected" | "Expired"

    Optional query approval status

    TechnicalDescription?: string

    Optional technical documentation for developers

    UserQuestion?: string

    Optional natural language question this query answers

    UsesTemplate?: boolean

    Optional flag indicating if the query uses Nunjucks template syntax