Step - has

has ยท category: Filters

Keeps elements that have the property (and, with a value or predicate, whose value matches); the 3-argument form also tests the label.

Forms

has(arg1: any)
has(arg1: By, arg2: any)
has(arg1: any, arg2: any)
has(arg1: string, arg2: any, arg3: any)

Example

g.v().has("person", "age", P.gt(30)).values("name").to_list()   // ["josh", "peter"]

See also