skip to main content
Querying with OData Version 2 : Formulating queries with OData Version 2 : Navigating relationships with OData Version 2 : $links construct
  

Try 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://<myserver>:<port>/api/odata/SQLServerDS/Customers('3')/$links/Orders
where <myserver> is the DSN name or the IP address of the machine where Hybrid Data Pipeline is installed.
This returns links to the orders that belong to customer 3.