sourcegraph / sourcegraph

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
9.76k stars 1.19k forks source link

Sveltekit: Graphql fragment naming convention #61792

Open jasonhawkharris opened 1 month ago

jasonhawkharris commented 1 month ago

https://github.com/sourcegraph/sourcegraph/pull/61746#discussion_r1560656572

camdencheek commented 3 weeks ago

Proposal: use the form <ComponentName><GraphQLObjectType>. e.g., for the linked comment, we would use RepoPopoverRepository. That way, the generated type name for the fragment is a descriptive name that specifies "this is a subset of repository fields that are needed for the RepoPopover component"