GraphQueryResponse
The subgraph selected by a graph query: nodes, typed edges, optional evidence paths, optional aggregation buckets, and result metadata. Process pages cumulatively: an edge or path may reference a node returned on an earlier page.
Properties
- This page’s slice of the selected nodes (id-ordered), from the frontiers named in return.select plus any nodes referenced by returned paths.
- ↳
idstring requiredStable node identifier: the Pulumi URN for IaC resources, the Insights URN for discovered resources, or ‘stack:/ / ’ for stacks. A stack’s id is not the spelling a selector uses: scope.stacks and a stack anchor’s name predicate both take the org-free ‘project/stack’ form, and both reject the org-qualified form. - ↳
nodeTypeenum requiredThe node type.Values:resource,stack - ↳
frontierarray[string] requiredNames of the selected frontiers this node belongs to (‘anchor’ or traversal step aliases). - ↳
urnstring optionalThe resource URN. Absent for stack nodes. - ↳
typestring optionalThe resource type token. Absent for stack nodes. - ↳
stackstring optionalThe Pulumi stack this node belongs to, or that it represents for a stack node. Absent on a resource discovered by a cloud scan. - ↳
projectstring optionalThe Pulumi project this node belongs to, or that it represents for a stack node. Absent on a resource discovered by a cloud scan. - ↳
accountstring optionalThe Insights account a discovered resource was found in, as the complete account name including any ‘/’-separated hierarchy. - ↳
fieldsmap[string]string optionalAdditional projected fields requested via return.fields, plus engine-provided provenance fields where available. - ↳
fieldsUnavailableboolean optionalTrue when the engine had no indexed document for this resource, so none of the fields requested in return.fields could be evaluated on it. A stack node never carries it: it projects name, project and stack from its own identity. Absent unless return.fields was requested. - The typed edges revealed by this page: every edge whose higher-id endpoint first appears on this page. Both endpoints are among the nodes returned by this page or an earlier one — process pages cumulatively. A drain over changing data may not be complete.
- ↳
idstring requiredStable edge identifier, unique within the response. - ↳
fromstring requiredThe source node id. - ↳
tostring requiredThe destination node id. - ↳
typestring requiredThe edge type, for example ‘provided_by’ or ‘inferred_reference’. - Evidence paths showing how the query reached its results. Present only when return.paths is true. One path per node of the final traversal frontier, not necessarily the shortest route.
- ↳
nodesarray[string] requiredNode ids along the path, in traversal order. Every id named here is present among the response’s nodes once the page containing it has been retrieved. - ↳
edgesarray[string] requiredEdge ids along the path, in traversal order. One fewer entry than nodes. - Aggregation buckets. Empty unless the query included an aggregate clause.
- The aggregation buckets.
- Result-set pagination information.
- ↳
continuationTokenstring optionalOpaque keyset token for the next page, omitted rather than null when no pages remain. Pass it back as page.continuationToken. - ↳
resultCountinteger requiredThe number of nodes (or aggregation buckets) returned on this page. - Result metadata, including whether anything clipped the underlying result.
- ↳
resultModeenum requiredResult fidelity: whether an engine cap or a partial search-backend response clipped the underlying result. Treat ’truncated’ as disqualifying for any question whose answer depends on completeness, such as an absence check.Values:exact,truncated - ↳
schemaVersionstring requiredThe dated revision of the graph contract this query was evaluated against, for example ‘2026-07-29’. While the graph query API is in preview the contract can change. - ↳
visibilityenum optionalWhether the caller’s permissions hid anything from the answer: nodes the traversal could not see, or stacks dropped from what scope.stages resolved to. Always present for traversal queries. Absent for aggregations, which are always scoped to the caller’s permissions, unless scope.stages is set. Other anchor selection is likewise caller-scoped and not reported here. Independent of resultMode, which reports engine-side clipping.Values:complete,trimmed