[QUESTION] How to create a query endpoint for a many-to-many relation with custom properties? #1510
Unanswered
jhonnydelima
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to create a query endpoint for a many-to-many relation which has custom properties.
Setup:
Below is a query example to get one establishment by the code. However, it gets only the data from the establishment, and what I need is to get the establishment with all its addresses.
Do I need to add the property addresses: AddressDTO[] in EstablishmentDTO or just add some decorator for connection? Can someone give me a hand with that? This is basically the continuation of #1506, but I splitted them, since the subjects are not the same.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions