apollographql / apollo-studio-community

🎡  GraphQL developer portal featuring an IDE (Apollo Explorer), auto-documentation, metrics reporting, and more. This repo is for issues, feature requests, and preview docs. 📬
https://studio.apollographql.com
249 stars 29 forks source link

Shared/Named fragments for reuse #244

Open matthewweldon opened 1 year ago

matthewweldon commented 1 year ago

Context

I'm an iOS developer trying to get my head around Apollo studio's named fragments.

In this (deprecated) documentation the benefit of named fragments is stated as:

Named fragments can stand alone and are great for reuse across multiple queries.

Are named fragments that are reusable between queries possible or do you need to remake identically named and parameterized fragments in the Apollo studio for each query?

I understand this would work locally if I had named fragments in their own .graphql files, but I'm trying to use Apollo studio as a source of truth.

What type of feedback is this?

Is there anything else you'd like to share about the Platform API?