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

Share this video with your friends

Send Tweet

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