Skip to main content

search Command

The search command allows you to search the graph using filters, traversals, and functions.

Usage

search [--with-edges] [--explain] <query>

Parameters

ParameterDescriptionRequired?Default Value
querySearch query to execute✔️

Options

OptionDescriptionRequired?
--with-edgesReturn edges in addition to nodes
--explainInstead of executing the query, analyze its cost

Aliases

  • match
  • query

Examples

Find accounts across all cloud providers
> search is(account)
Find all AWS accounts
> search is(aws_account)
Find all AWS accounts more than 2 weeks old
> search is(aws_account) and age>2w
Find all AWS accounts that are either older than 2 weeks or have more than 10 users
> search is(aws_account) and (age>2w or users<10)
Find 3 AWS accounts that are are either older than 2 weeks or have more than 10 users
> search is(aws_account) and (age>2w or users>10) limit 3
Find the 3 AWS accounts that are more than 2 weeks old with the greatest number of users
> search is(aws_account) and age>2w sort users desc limit 3

Further Reading

Contact Us

 

 

 

Some Engineering Inc.