Introduction
Fragments let you save parts of your data requests to use again. This helps you avoid repeating the same code.
When you want to get the same fields from different parts of your data.
When your query is getting long and you want to keep it neat.
When you need to update a field selection in many places at once.
When you want to share common data requests between different queries or mutations.