Brian Ghigiarelli created TINKERPOP-2732:
--------------------------------------------

             Summary: Support containsAll predicate
                 Key: TINKERPOP-2732
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2732
             Project: TinkerPop
          Issue Type: Improvement
          Components: language
            Reporter: Brian Ghigiarelli


A {{containsAll}} predicate in Gremlin and TinkerPop would improve usability 
and performance for determining whether a set or list of values for a property 
are all found within some provided input.

This is currently available for property values with a single cardinality 
through the {{within}} predicate.

At the moment, the {{containsAll}} behavior is available through some 
workarounds:
 # lambdas on some environments ( see [3] below )
 # a multi-step {{where}} traversal that involves creating a union of the input 
and property values, deduplicating the list, then checking that the length of 
the list against the  original input length ( see [1] below )

 

Background discussions:

 [1] [https://discord.com/channels/838910279550238720/959091047508631652]

 [2] [https://gitter.im/janusgraph/janusgraph?at=62431cdaf43b6d783f24f842]

 [3] [https://stackoverflow.com/questions/69440735]



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to