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

$expand for entity from remote service doesn't trigger READ event #115

Open
EvgenBaranau opened this issue Jun 22, 2022 · 1 comment
Open

Comments

@EvgenBaranau
Copy link

Hello team.

Faced on issue, but I am not sure about expected behaviour.
I have the data model:

entity A {
    key Id: Integer;
    Subject : String;
    LinkToB: Association to B ;
}

service Service  {
    entity A as projection on A;

    entity B as projection on B;
}

B is entity from remote service. And the idea is to fetch B from remote service once user wants to expand LinkToB.
For that, I should handle READ event for entity B, but this event doesn't trigger, framework tries to find the table B in database. Is it expected behaviour?

In other words, I wait 2 READ events when user call GET Service/A?$expand=LinkToB : READ for entity B, and READ for entity A.

In case, when only one event is expected, how to salve this issue?

@vobu
Copy link
Contributor

vobu commented Jun 22, 2022

I'd suggest to post this on https://answers.sap.com/tags/9f13aee1-834c-4105-8e43-ee442775e5ce for wider reach

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

2 participants