Skip to content

Commit

Permalink
consolidate comment on materializeresult
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpadden committed Feb 28, 2024
1 parent 533d366 commit 88395da
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/content/getting-started/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ height={1754}
The Quickstart project defines two **Assets** using the <PyObject object="asset" decorator /> decorator:

- `hackernews_top_story_ids` retrieves the top stories from the Hacker News API and saves them as a JSON file.
- `hackernews_top_stories` builds upon the first asset, retrieving data for each story and saving it as a CSV file.
- `hackernews_top_stories` asset builds upon the first asset, retrieving data for each story as a CSV file, and returns a `MaterializeResult` with a markdown preview of the top stories.

```python file=/getting-started/quickstart/assets.py
import json
Expand Down Expand Up @@ -177,8 +177,6 @@ def hackernews_top_stories(config: HNStoriesConfig) -> MaterializeResult:
)
```

The `hackernews_top_stories` asset returns a `MaterializeResult` with metadata, which is displayed in the Dagster UI, providing a markdown preview of the top stories.

---

## Next steps
Expand Down

0 comments on commit 88395da

Please sign in to comment.