skip to main content
Formulating queries : Navigating relationships : $links Construct
 

Try DataDirect Cloud Now

$links Construct

The examples in this topic use the following table structure:
Customer ---> Order ---> OrderItem
|
---> Contact
$links navigation is similar to Resource Path navigation except that instead of returning the data for the referenced resource, a link to the referenced resource is returned. For example, a query that lists the orders of a particular customer could be written as:
https://service.datadirectcloud.com/api/odata/SQLServerDS/Customers('3')/$links/Orders
This returns links to the orders that belong to customer 3.