Skip to main content

reconstruct_operation

Function reconstruct_operation 

Source
pub fn reconstruct_operation(
    name: &str,
    kind: &OperationKind,
    variables: &[Variable],
    selection: &Option<SelectionSet>,
    fragments: &[FragmentDefinition],
) -> String
Expand description

Reconstruct a GraphQL operation document string from the IR.

Produces the full operation text including variable definitions, selection sets, fragment spreads, and inline fragments.