Versions in this module Expand all Collapse all v1 v1.21.0 Mar 13, 2026 Changes in this version + func ExpandDefs(pipelineText string, defs []FuncDef) (string, error) + func FieldValuePublic(row Row, name string, g *graph.SchemaGraph) expr.Value + func FormatJSON(result *Result, g *graph.SchemaGraph) string + func FormatMarkdown(result *Result, g *graph.SchemaGraph) string + func FormatTable(result *Result, g *graph.SchemaGraph) string + func FormatToon(result *Result, g *graph.SchemaGraph) string + type FuncDef struct + Body string + Name string + Params []string + func LoadModule(path string, searchPaths []string) ([]FuncDef, error) + type GroupResult struct + Count int + Key string + Names []string + type Query struct + Defs []FuncDef + Includes []string + Stages []Stage + func ParseQuery(query string) (*Query, error) + type Result struct + Count int + Explain string + Fields []string + FormatHint string + Groups []GroupResult + IsCount bool + Rows []Row + func Execute(query string, g *graph.SchemaGraph) (*Result, error) + func ExecuteWithSearchPaths(query string, g *graph.SchemaGraph, searchPaths []string) (*Result, error) + type ResultKind int + const OperationResult + const SchemaResult + type Row struct + EdgeFrom string + EdgeKind string + EdgeLabel string + Kind ResultKind + OpIdx int + SchemaIdx int + type Stage struct + Expr string + Fields []string + Format string + Kind StageKind + Limit int + PathFrom string + PathTo string + SortDesc bool + SortField string + Source string + VarName string + func Parse(query string) ([]Stage, error) + type StageKind int + const StageAncestors + const StageBlastRadius + const StageBottom + const StageClusters + const StageConnected + const StageCount + const StageCycles + const StageExplain + const StageFields + const StageFormat + const StageGroupBy + const StageItems + const StageLast + const StageLeaves + const StageLet + const StageNeighbors + const StageOps + const StageOrphans + const StagePath + const StageProperties + const StageReachable + const StageRefsIn + const StageRefsOut + const StageSample + const StageSchemas + const StageSelect + const StageSharedRefs + const StageSort + const StageSource + const StageTagBoundary + const StageTake + const StageTop + const StageUnionMembers + const StageUnique + const StageWhere