Skip to main content
Version: 4.1.0

successors Command

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

Usage

successors [--with-origin] <edge_type>

Parameters

ParameterDescriptionRequired?Default Value
edge_typeEdge type by which to traversedelete

Options

OptionDescriptionRequired?
--with-originInclude current element in the result set

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

Further Reading