within
Given a list of objects, return the ones that listed.
Synopsis
within(object, ...)
Description
The within()
predicate answers the question: Is the incoming object in the array of provided objects?
Examples
Get the two people who have the specified user-defined vertex ids:
g.V().has(id, within("{~label=person, personId=1}", "{~label=person, personId=2}"))