Skip to main content
Version: 3.0.4

successors Command

The successors command selects all successors of nodes returned in a query.

Please refer to the Search Traversals for a detailed explanation of traversals.

Usage

successors [--with-origin] <edge_type>

Options

OptionDescription
--with-originIncludes the current element in the result set.

Parameters

ParameterDescriptionRequired?Default Value
edge_typeEdge type by which to traversedelete

Examples

Equivalent to query is(aws_region) -->
> search is(aws_region) | successors
Equivalent to query is(aws_region) -[0:1]->
> search is(aws_region) | successors --with-origin
> search is(volume_type) | successors | query is(volume)
​kind=gcp_disk, id=16, name=gke16, age=8mo29d, cloud=gcp, account=eng, region=us-west1, zone=us-west1-a
​kind=gcp_disk, id=26, name=gke26, age=8mo29d, cloud=gcp, account=eng, region=us-west1, zone=us-west1-a
​kind=aws_ec2_volume, id=vol1, name=vol1, age=2mo11d, cloud=aws, account=insights, region=us-west-2