Find (gx table query)

gx table query [-hqvV] [--skip-health-check] [--tls] [-c[=<YAML config>]] [-a=<appName>] [-e=<envName>] [-H=<host>] <tableName> [query]

gx table query <table name> <query> returns all grains matching the provided query.

Queries can only be written against secondary indexes. Refer to Building Secondary Indexes wtih Grainite **** for information on creating secondary indexes.

$> gx table query "income > 100000 && (city == 'Los Angeles' || city == 'San Francisco')"
1. u123456789
2. u123987654

If a query is not provided, an interactive shell is started, which can be exited by ctrl-c.

Last updated