Context
GraphService exists at backend/pkg/plugin/resource/graph_service.go with three query methods:
GetRelated() — edges from/to a resource, optional type filter
GetRelationshipChain() — BFS traversal of a specific relationship type
GetDependencyTree() — recursive tree of all edge types
These are fully implemented but not bound to Wails — they're missing from the Bind array in main.go (lines ~332-354).
What to do
- Add
GraphService to the Wails Bind list in main.go
- Run
wails generate module to produce TypeScript client types
- Verify the generated TS types match the Go method signatures
- Add a basic smoke test confirming the service initializes correctly
Files
main.go — add to Bind array
backend/pkg/plugin/resource/graph_service.go — already implemented, no changes needed
Context
GraphService exists at
backend/pkg/plugin/resource/graph_service.gowith three query methods:GetRelated()— edges from/to a resource, optional type filterGetRelationshipChain()— BFS traversal of a specific relationship typeGetDependencyTree()— recursive tree of all edge typesThese are fully implemented but not bound to Wails — they're missing from the
Bindarray inmain.go(lines ~332-354).What to do
GraphServiceto the WailsBindlist inmain.gowails generate moduleto produce TypeScript client typesFiles
main.go— add to Bind arraybackend/pkg/plugin/resource/graph_service.go— already implemented, no changes needed