pub struct GraphQuery {
pub start: Vec<String>,
pub depth: usize,
pub layout_edges: bool,
pub selector: Vec<Expr>,
pub edge: Vec<Expr>,
pub to: Vec<Expr>,
pub query: Option<Expr>,
pub all: bool,
pub archived: bool,
}Expand description
GraphQuery holds the bounds of sokf graph, one field for each bound.
Fields§
§start: Vec<String>The starts that START... gives. When it is empty, the query starts
at every knowledge root.
depth: usizeThe number of hops that --depth follows from a start that is a
document, a file, or a key.
layout_edges: boolWhether --depth was given. When it was, each line of a layout
prints its edges to depth hops, as a document start does
(CLI-7_AC-65).
selector: Vec<Expr>The -l selectors. A document matches when any one of them is true.
edge: Vec<Expr>The --edge selectors. An edge matches when any one of them is true.
to: Vec<Expr>The --to selectors. A target matches when any one of them is true.
query: Option<Expr>The expression of --query, which projects the JSON form of the
result.
all: boolall is whether --all was given. When it was, the result prints
every entry past the limit and every region of a folded include.
archived: boolarchived is whether --archived was given. When it was, the result
prints the archived documents and their edges.