Skip to content

Commit

Permalink
Docs: Fix fragments tutorial thumbnail typo (#4841)
Browse files Browse the repository at this point in the history
Summary:
Hi, I just ran through the tutorial and think I found a small typo.

In the [example code](https://github.com/relayjs/relay-examples.git) referenced in the tutorial the field is called `thumbnail` and not `image`. Fixed tutorial example to reflect this.

Pull Request resolved: #4841

Reviewed By: lynnshaoyu

Differential Revision: D65487327

Pulled By: captbaritone

fbshipit-source-id: 151d96a452053566dddcac2e830e6b7a0c245352
  • Loading branch information
danielstocks authored and facebook-github-bot committed Nov 6, 2024
1 parent 8f93027 commit c3b0dd5
Showing 1 changed file with 3 additions and 3 deletions.
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 @@ -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

0 comments on commit c3b0dd5

Please sign in to comment.