OxQL
query and explain execute raw OxQL (an OxGraph-native, Cypher-flavored query
language). For keyword discovery prefer symbols; do not pass
plain English phrases to query.
Accepted profile
CATALOG
MATCH ELEMENTS
MATCH ELEMENTS HAS LABEL <label>
MATCH ELEMENTS WHERE <property> = '<value>'
MATCH RELATIONS TYPE <type>
GRAPH calls WALK FROM <element-id> DEPTH <n> [DIRECTION outgoing|incoming|both] [LIMIT n]Examples
oxcode query "MATCH ELEMENTS WHERE qualified_name = 'crate::entry'" --path path/to/project
oxcode query "MATCH RELATIONS TYPE calls" --format expand --path path/to/project
oxcode query "GRAPH calls WALK FROM 12 DEPTH 2 DIRECTION both LIMIT 100" --path path/to/projectUse --format expand to expand graph IDs back into function names, definition
ranges, signatures, and source context.