Skip to content

Commit

Permalink
update fragment tutorial documentation (#4292)
Browse files Browse the repository at this point in the history
Summary:
Addresses: #4291

Clear up the (possible) misconception that the development server won't resize static assets.

Pull Request resolved: #4292

Reviewed By: voideanvalue

Differential Revision:
D46361068

Privacy Context Container: L1125407

Pulled By: captbaritone

fbshipit-source-id: ad8f26f1006fb97d492282b728eaced25f4912af
  • Loading branch information
comatory authored and facebook-github-bot committed Jun 1, 2023
1 parent edb8d17 commit cba7764
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,8 @@ const PosterBylineFragment = graphql`

Now if you look at the images that our app downloads, you’ll see they’re of the smaller size, saving network bandwidth. Note that although we used integer literals for the value of our fragment arguments, we can also use variables supplied at runtime, as we'll see in later sections.

_Note: The development server provided does not do actual image resizing, it will only append the size as integer to returned image URL as query parameter._

Field arguments (e.g. `url(height: 100)`) are a feature of GraphQL itself, while fragment arguments (as in `@argumentDefinitions` and `@arguments`) are Relay-specific features. The Relay compiler processes these fragment arguments when it combines fragments into queries.

---
Expand Down

0 comments on commit cba7764

Please sign in to comment.