Course lesson

Use GraphQL Fragments to Query Same Fields on Multiple Queries in React Native

We'll refactor the Story out to a separate component, create a fragment for the story fields and reuse the fragment in the bookmarks query.

Duration
7 min
Access
Included
Transcript
Retained from source evidence

We'll refactor the Story out to a separate component, create a fragment for the story fields and reuse the fragment in the bookmarks query.

We'll see how using Fragments makes it easy to query for data throughout our application.

Fragments: https://graphql.org/learn/queries/#fragments