public override ReqlExpr Visit(ReqlExpr reqlExpr, QueryModel queryModel) { var fromExpression = queryModel.MainFromClause.FromExpression as MemberExpression; var memberNameResolver = new MemberNameResolver(fromExpression); reqlExpr = memberNameResolver.Resolve(reqlExpr); reqlExpr = reqlExpr.Filter(expr => GetWhereReqlAst(expr, ((AllResultOperator)queryModel.ResultOperators[0]).Predicate, queryModel).Not()); return(reqlExpr.Count().Eq(0)); }
protected override ReqlExpr BuildReql(ReqlExpr reqlExpr, QueryModel queryModel) => reqlExpr.Count().Gt(0);