Skip to content

TreeDumpIndex

James Michael DuPont edited this page May 13, 2017 · 1 revision

jq

https://jqplay.org/s/BusOB8PMQ2

enum

{"result":[{"csts":"@12563","enum":"@11509","id":"TDI_cgraph","purp":"purp","string":"strg"},{"csts":"@12563","enum":"@11509","id":"TDI_inheritance","purp":"purp","string":"strg"},{"csts":"@12563","enum":"@11509","id":"TDI_clones","purp":"purp","string":"strg"},{"csts":"@12563","enum":"@11509","id":"TDI_tu","purp":"purp","string":"strg"},{"csts":"@12563","enum":"@11509","id":"TDI_class","purp":"purp","string":"strg"},{"csts":"@12563","enum":"@11509","id":"TDI_original","purp":"purp","string":"strg"},{"csts":"@12563","enum":"@11509","id":"TDI_generic","purp":"purp","string":"strg"},{"csts":"@12563","enum":"@11509","id":"TDI_nested","purp":"purp","string":"strg"},{"csts":"@12563","enum":"@11509","id":"TDI_tree_all","purp":"purp","string":"strg"},{"csts":"@12563","enum":"@11509","id":"TDI_rtl_all","purp":"purp","string":"strg"},{"csts":"@12563","enum":"@11509","id":"TDI_ipa_all","purp":"purp","string":"strg"},{"csts":"@12563","enum":"@11509","id":"TDI_end","purp":"purp","string":"strg"}]}

query

g.V().Tag("enum").Out("name").Out("name").Has("strg","tree_dump_index")
.Back("enum").Out("csts").Tag("csts") 
.Back("csts")
.FollowRecursive("chan")
.Out("purp","purp").Out("strg","string")
.All()
Clone this wiki locally