redis / redis-om-dotnet

Object mapping, and more, for Redis and .NET
MIT License
442 stars 74 forks source link

Possibility to Improve TranslateContainsStandardQuerySyntax to include Expression.Constant #409

Closed zulander1 closed 7 months ago

zulander1 commented 9 months ago

I am working with ChilliCream GraphQL, and I am having issue with "Contains" when the application is calling Contains using .Call System.Linq.Enumerable.Contains( .Constant(System.String[]), $_s0.FirstName) since this is Constant, it doesn't fall though this line. you can see the issue with this file:

https://github.com/zulander1/redis_graphql

Query is (https://localhost:7231/graphql/)


{
  customer(where: { firstName: { in: ["james"] } }) {
    nodes {
      firstName
      lastName
    }
  }
}