transformations.unwind
work, the table only shows undefined
values -> Is there a working example I can check somewhere?transformations.flatten
, it seems the table can't show fields with array
or object
format, it shows undefined
instead. Am I missing something here?data
part:[ { "metadata": { "timestamp": "2024-07-08T09:51:31.942Z", "run_id": "lWmckTaBAlbeKTM33" }, "data": { "url": "some_url.com", "title": "some title", "attributes": ["a", "b"] } }, {...} ]
object
(this works)link
(works only when using flatten
, not unwind
)text
(same)array
(shows undefined
){ "actorSpecification": 1, "fields": {}, "views": { "price_monitor": { "title": "Price Monitor", "description": "`PriceMonitor` output schema.", "transformation": { "fields": [ "metadata", "data.url", "data.id", "data.title", "data.brand", "data.price" ], "flatten": [ "data" ] }, "display": { "component": "table", "properties": { "metadata": { "format": "object" }, "data.url": { "label": "URL", "format": "link" }, "data.id": { "label": "ID", "format": "text" }, "data.title": { "label": "Title", "format": "text" }, "data.brand": { "label": "Brand", "format": "text" }, "data.price": { "label": "Price", "format": "object" } } } } } }
unwind
with this config:{ "actorSpecification": 1, "fields": {}, "views": { "price_monitor": { "title": "Price Monitor", "description": "`PriceMonitor` output schema.", "transformation": { "fields": [ "metadata", "url", "id", "title", "brand", "price" ], "flatten": [ "unwind" ] }, "display": { "component": "table", "properties": { "metadata": { "format": "object" }, "url": { "label": "URL", "format": "link" }, "id": { "label": "ID", "format": "text" }, "title": { "label": "Title", "format": "text" }, "brand": { "label": "Brand", "format": "text" }, "price": { "label": "Price", "format": "object" } } } } } }
"transformation": { "fields": [ "searchQuery", "resultsTotal", "organicResults" ], "unwind": [ "organicResults" ] },
"flatten": [ "unwind" ]
"views": { "overview": { "title": "Overview", "description": "", "transformation": { "fields": [ "thumbnailImage", "asin", "title", "description", "brand", "stars", "reviewsCount", "price.value", "breadCrumbs", "url" ], "flatten": [ "price" ] }, "display": { "component": "table", "properties": { "thumbnailImage": { "label": "Image", "format": "image" }, "asin": { "label": "ASIN" }, "description": { "format": "text" }, "stars": { "format": "number" }, "reviewsCount": { "format": "number" }, "price.value": { "label": "Price", "format": "number" }, "breadCrumbs": { "label": "Categories" }, "url": { "label": "URL", "format": "link" } } } } }
"unwing": ["data"]
, and data contains a url
field, what should i list in the fields
? I've tried url
and data.url
adn both end up undefined
.flatten
none of the fields are of type array or object (they are image, text or number only), which are the types I'm having trouble with...unwind
I'm able to move children into a parent object as expected, but in the table view it always appears as undefined
. What should be in the field list when using unwind?