Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace story.image for story.thumbnail #4793

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions website/docs/tutorial/fragments-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const NewsfeedQuery = graphql`
url
}
}
image {
thumbnail {
url
}
}
Expand Down Expand Up @@ -56,7 +56,7 @@ export default function Story({story}: Props) {
<Heading>{story.title}</Heading>
// change-line
<Timestamp time={story.createdAt} /> // Add this line
<Image image={story.image} />
<Image image={story.thumbnail} />
<StorySummary summary={story.summary} />
</Card>
);
Expand Down Expand Up @@ -95,7 +95,7 @@ const StoryFragment = graphql`
url
}
}
image {
thumbnail {
url
}
}
Expand Down Expand Up @@ -146,7 +146,7 @@ export default function Story({story}: Props) {
<Heading>{data.title}</Heading>
<PosterByline poster={data.poster} />
<Timestamp time={data.createdAt} />
<Image image={data.image} />
<Image image={data.thumbnail} />
<StorySummary summary={data.summary} />
</Card>
);
Expand Down