I have three different finder results that I want to merge into a single API result (finder result 1 being the primary set of properties, and then two properties each reflecting the other two finder results). Is there an example of building your own object and outputting it as part of introducing an API?
My original plan was to use setupApiResultData to return the result, but I have several TO_MANY joins, so I decided to fall back to 3 separate queries.
Appreciate any thoughts in advance!
Edit: NVM, looks like you can feed apiResult your own multidimensional array and it'll render accordingly.
My original plan was to use setupApiResultData to return the result, but I have several TO_MANY joins, so I decided to fall back to 3 separate queries.
Appreciate any thoughts in advance!
Edit: NVM, looks like you can feed apiResult your own multidimensional array and it'll render accordingly.
Last edited: