Skip to main content

apply_pipeline

Function apply_pipeline 

Source
pub fn apply_pipeline(
    data: &mut Value,
    opts: &PipelineOpts,
) -> Result<Option<PaginationMeta>>
Expand description

Applies filter, pagination, expression, and field projection in framework order.

Field validation (rejecting names absent from the response data) only runs for an explicit --fields flag, not for a command’s default_fields fallback (opts.fields_are_default): default fields are author-controlled and applied to every invocation of a command, so a legitimate optional field that happens to be absent from every row of one particular response (rather than genuinely misspelled) would otherwise hard-error that command for everyone until the author noticed.