You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have an issue with $apply=groupby(). It seems the groupby is not taking place. When use EnableQuery it works but without EnableQuery it is not working.
Example code:
[HttpGet]
[Route("EmsLogs")]
[ProducesResponseType(typeof(IEnumerable<EmsLog>), StatusCodes.Status200OK)]
public async Task<IActionResult> Get(ODataQueryOptions<EmsLog> queryOptions, CancellationToken cancellationToken = default)
{
queryOptions.Validate(new DefaultValidationSettings());
var smartAppIds = await _smartAppCacheProvider.GetAsync(cancellationToken);
var result = await _repository
.AsQueryable(new EmsLogViewSmartAppIdSpecification(smartAppIds))
.GetQueryAsync(_mapper, queryOptions, new DefaultQuerySettings());
return Ok(result);
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
We have an issue with $apply=groupby(). It seems the groupby is not taking place. When use
EnableQuery
it works but withoutEnableQuery
it is not working.Example code:
We see this PR for over a year:
#108
Is there a workaround for this?
Beta Was this translation helpful? Give feedback.
All reactions