Second Brain
HomeTableBooksPodcastsNewslettersGraphStatsTagsAuthorsAbout

relay

(1)

How To Use Fragments (They're Not for Re-use!)

by janette-cheng

GraphQL fragments describe data requirements for components, not reduce code duplication. Reusing fragments causes overfetching. Use fragment models, collocate GraphQL with code, and write GraphQL that mirrors your component structure.

graphqlrelaymetafrontendbest-practicesarchitectureJan 3, 2026
Source