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

Return empty objects with IDs where "depth" parameter prevents object return #279

Closed
rossb-mmt opened this issue Sep 22, 2021 · 3 comments · Fixed by #319
Closed

Return empty objects with IDs where "depth" parameter prevents object return #279

rossb-mmt opened this issue Sep 22, 2021 · 3 comments · Fixed by #319
Assignees
Milestone

Comments

@rossb-mmt
Copy link

Motivation

Returning a content item, which has a linked item element, with a depth of 1, will return a typed object which appears to have no items in that property, even though the underlying API call has returned the IDs (but not the content) of the linked items. There isn't currently a way to access those IDs to make the additional API calls to retrieve them.

Proposed solution

We could return a "ghost" object which has no content except the ID for items which are linked but whose detailed content is missing from the API call return.

@MiroKentico
Copy link
Contributor

MiroKentico commented Sep 23, 2021

Hello rossb-mmt,

I will reproduce your scenario and analyze possible solutions (including the one you proposed). I will keep you informed.

Best Regards
Miroslav

@Simply007
Copy link
Contributor

More context in #281

@Simply007
Copy link
Contributor

rename to PropertyName

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment