private ParameterExpression AddAsQueryParameter(Expression node) { LinqPathProvider.GetValueFromExpressionWithoutConversion(node, out var value); var queryParameter = _documentQuery.ProjectionParameter(value); return(Expression.Parameter(node.Type, queryParameter)); }