JeromeJ
Apify & Crawlee2y ago
9 replies
Jerome

Output schema

Hi, I'm having 2 issues with output schema definition:
- I can't make
transformations.unwind
work, the table only shows
undefined
values -> Is there a working example I can check somewhere?
- When instead using
transformations.flatten
, it seems the table can't show fields with
array
or
object
format, it shows
undefined
instead. Am I missing something here?

For reference, my result is formatted like this, and i want to unwind/flatten the
data
part:
[
  {
    "metadata": {
      "timestamp": "2024-07-08T09:51:31.942Z",
      "run_id": "lWmckTaBAlbeKTM33"
    },
    "data": {
      "url": "some_url.com",
      "title": "some title",
      "attributes": ["a", "b"]
    }
  },
  {...}
]

And I'd like the table to show the columns:
- "metadata" as
object
(this works)
- "url" as
link
(works only when using
flatten
, not
unwind
)
- "title" as
text
(same)
- "attributes" as
array
(shows
undefined
)

Here is the docs I've been using https://docs.apify.com/platform/actors/development/actor-definition/output-schema
Was this page helpful?