Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$count for actions/functions returning collections of complex types #484

Closed
gordon-matt opened this issue Aug 18, 2015 · 2 comments
Closed
Assignees
Milestone

Comments

@gordon-matt
Copy link

$count does not work for actions/functions returning collections of complex types. See details here:
http://stackoverflow.com/questions/31822755/passing-parameters-to-an-odata-get-method-which-returns-a-collection/31823976?noredirect=1#comment51621266_31823976

This is a big problem for me, as I need really @odata.count to be returned. Is there a workaround for now? Maybe I can get the source code, change a few lines of code and use that custom build for the moment?

@congysu congysu added this to the v5.8 milestone Aug 19, 2015
VikingsFan added a commit to VikingsFan/WebApi that referenced this issue Nov 5, 2015
@VikingsFan
Copy link
Contributor

@gordon-matt This is working in 5.7, please check PR #546, I add a test case to test $count work for functions returning collections of complex types.

@gordon-matt
Copy link
Author

It's working beautifully! Thanks!

VikingsFan added a commit that referenced this issue Nov 11, 2015
gordon-matt added a commit to gordon-matt/KoreCMS that referenced this issue Dec 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants