Left join in API queries
The default behavior when an API query is executed is to put in right join the relationship between objects. From DLP 4.0.0 is possible specify in the filters of the API URL query to use left join instead of the right join.
For instance the following API query: http://platform-dev.dataloy.com/ws/rest/Cargo?pageNumber=1&limit=50&filter=voyage.voyageHeader.isBudget(EQ)0&filter=(OR)&filter=voyage(NULL)
generates the following SQL query:
That will not return cargoes with voyages null.
Instead if the following query is executed:
encoded (+ become %2B):
generates the following SQL query:
It will return also cargoes with voyage null.
The same concept is used with sort:
Executing this query:
http://platform-dev.dataloy.com/ws/rest/Cargo?sort=voyage.voyageHeader.referenceNo(AS)
the following SQL query is executed:
Instead running the following query:
http://platform-dev.dataloy.com/ws/rest/Cargo?sort=voyage%2B.voyageHeader%2B.referenceNo(AS)
the following SQL query is executed:
Last updated