Using Fragments
Learn how to use GraphQL fragments with Apollo Client.
We'll cover the following...
So far, we’ve used two different GraphQL queries in our frontend to fetch data about posted products. One problem with these queries is that they’re querying a duplicated list of fields.
This isn’t an issue by itself, but we’re using the same component to render the results from both queries. So, we need to ensure that the queries and the ...