コード例 #1
0
 public Condition Where(Condition condition)
 {
     Ensure.IsNotNull(condition, "The condition is required");
     return(new BooleanFunctionCondition(
                FunctionInvocation.Create(_predicate,
                                          new ListPredicate(_name, _listExpression, new Where(condition)))));
 }
コード例 #2
0
ファイル: Functions.cs プロジェクト: anadale/hotchocolate
 public static FunctionInvocation Exists(Expression expression) =>
 FunctionInvocation.Create(BuiltInFunctions.Predicates.Exists, expression);
コード例 #3
0
ファイル: Functions.cs プロジェクト: anadale/hotchocolate
 public static FunctionInvocation All(Expression expression) =>
 FunctionInvocation.Create(BuiltInFunctions.Predicates.All, expression);
コード例 #4
0
 /// <summary>
 /// See
 /// <a href="https://neo4j.com/docs/cypher-manual/current/functions/predicate/#functions-exists">
 /// Functions Exists
 /// </a>
 /// </summary>
 /// <param name="pattern"></param>
 /// <returns></returns>
 public static Condition Exists(IRelationshipPattern pattern) =>
 new BooleanFunctionCondition(
     FunctionInvocation.Create(BuiltInFunctions.Predicates.Exists, pattern));
コード例 #5
0
 /// <summary>
 /// See
 /// <a href="https://neo4j.com/docs/cypher-manual/current/functions/predicate/#functions-exists">
 /// Functions Exists
 /// </a>
 /// </summary>
 /// <param name="property"></param>
 /// <returns></returns>
 public static Condition Exists(Property property) =>
 new BooleanFunctionCondition(
     FunctionInvocation.Create(BuiltInFunctions.Predicates.Exists, property));