> ## Documentation Index
> Fetch the complete documentation index at: https://developer.tra.cy/llms.txt
> Use this file to discover all available pages before exploring further.

# Inclusion

All GET endpoints that return resource collections support inclusion via URL parameter. This allows you to fetch related parent and child resources in a single request.

<ParamField query="fields" default="null" type="string">
  A comma-separated list of property paths.

  <Note>
    Inclusion nesting depth is restricted for better performance.
  </Note>
</ParamField>

<RequestExample>
  ```bash Example 1 theme={null}
  # Returns all datasets along with their states, properties (including options), and representations.
  curl --request GET \
    --url '/datasets?fields=states,properties.options,representations'
  ```

  ```bash Example 2 theme={null}
  # Returns all records along with their states, datums with properties, and nested records (including their own states and datums with properties).
  curl --request GET \
    --url '/records?fields=state,datums.property,datums.recordvalue.state,datums.recordvalue.datums.property'
  ```
</RequestExample>
