volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Including fields problem

Hello

What types are supported by the client conventions IncludeField method?
I have the following(example code):

class InitModule
{
  private readonly Injected _client;

  void Initialize(InitializationEngine context)
  {
    _client.Service.Conventions.ForInstancesOf()
      .IncludeField(x => x.Field1.Select(y => y.StringValue));
  }
}

class Search
{
  private readonly Injected _client;

  void Search()
  {
    var res = _client.Service.Search()
      .Filter(x => x.Field1.Select(y => y.StringValue)
        .In(ArrayOfStrings)).GetResult()
  }
}

Field1 is a list of complex types with a string property. I want to filter on the list of string property values.
Should this work? It is supported?

/Peter

#155414
Edited, Sep 16, 2016 9:57
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.