Having issues querying assets based on the name of the asset

I have…

I’m submitting a…

  • Regression (a behavior that stopped working in a new release)
  • Bug report
  • Performance issue
  • [ X] Documentation issue or request

Current behavior

Getting an exception:

When filter is:

var assets = await Client.GetAssetsAsync(new AssetQuery()
        {
            Filter = $"data.name eq 'userId'"
        }, cancellationToken);

OData $filter clause not valid: The child type ‘data.name’ in a cast was not an entity type. Casts can only be performed on entity types.

var assets = await Client.GetAssetsAsync(new AssetQuery()
        {
            Filter = $"name eq 'userId'"
        }, cancellationToken);

OData $filter clause not valid: Could not find a property named ‘name’ on type ‘Squidex.Asset’.

Expected behavior

Is there documentation that shows the fields available to filter on? Any relevant examples I can look at? I’m using the .NET SDK to interact with the API.

Minimal reproduction of the problem

Environment

App Name:

  • [X ] Self hosted with docker
  • Self hosted with IIS
  • Self hosted with other version
  • Cloud version

Version: 7

It is fileName:

Filter = $“fileName eq ‘userId’”