Skip to content

Commit

Permalink
Mention JSONPath in resolve docs (#1409)
Browse files Browse the repository at this point in the history
  • Loading branch information
burnash authored May 24, 2024
1 parent ceb229d commit 841c7b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/website/docs/dlt-ecosystem/verified-sources/rest_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -501,11 +501,13 @@ The syntax for the `resolve` field in parameter configuration is:
"<parameter_name>": {
"type": "resolve",
"resource": "<parent_resource_name>",
"field": "<parent_resource_field_name>",
"field": "<parent_resource_field_name_or_jsonpath>",
}
}
```

The `field` value can be specified as a [JSONPath](https://github.com/h2non/jsonpath-ng?tab=readme-ov-file#jsonpath-syntax) to select a nested field in the parent resource data. For example: `"field": "items[0].id"`.

Under the hood, dlt handles this by using a [transformer resource](../../general-usage/resource.md#process-resources-with-dlttransformer).

#### Include fields from the parent resource
Expand Down

0 comments on commit 841c7b4

Please sign in to comment.