Open xuzhg opened 3 years ago
This issue sounds some what related to something I'm seeing (which may be the correct behavior but I'm unsure).
Given the following:
class Entity
{
public Guid Id { get; set; }
public ICollection<int> Values { get; set; } = new List<int>();
}
And using the following query:
`?$select=Values($filter=$this gt 1000)`
I notice that the FilterClause.RangeVariable.Name
is equal to $it
, which isn't what I expected.
My expectation was for FilterClause.RangeVariable.Name
to be equal to the literal $this
and not $it
.
Is the behavior above correct? Should FilterClause.RangeVariable.Name
be equal to $it
for the above query?
Library version: 8.0.6
Short summary (3-5 sentences) describing the issue.
ODL query option parser the nested $filter as:
FilterClause: RangeVariable (name: "$it", type: "Order")
You can see the nested $filter has three range variables related, all named "$it".
When we do the bind, it tries to get the "$it" parameter when do the left, as the following debug:
Then, here's the example: