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

Enable serialize/deserialize navigation property with count without content #3154

Open
xuzhg opened this issue Dec 19, 2024 · 0 comments · May be fixed by #3155
Open

Enable serialize/deserialize navigation property with count without content #3154

xuzhg opened this issue Dec 19, 2024 · 0 comments · May be fixed by #3155
Assignees
Labels

Comments

@xuzhg
Copy link
Member

xuzhg commented Dec 19, 2024

Short summary (3-5 sentences) describing the issue.

Reproduce steps

ODL enables $count after navigation property in the $expand, for example

~/$expand=$navProp/$count
~/$expand=$navProp/$count($filter=prop gt abc)
~/$expand=$navProp/$count($search=prop)

See details at: #2051

When doing serialization, the navigation property should only contain the odata.count annotation without content.

Expected result

The payload should be:

Actual result

{

    "[email protected]": 4,
    "navProp": []
}

Additional detail

  • We'd also need to support to read the navigation property without content but contains the odata.count.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant