MCPcopy
hub / github.com/github/docs / getGraphqlSchema

Function getGraphqlSchema

src/graphql/lib/index.js:20–29  ·  view source on GitHub ↗
(version, type)

Source from the content-addressed store, hash-verified

18})
19
20export function getGraphqlSchema(version, type) {
21 const graphqlVersion = getGraphqlVersion(version)
22 if (!graphqlSchema.has(graphqlVersion)) {
23 graphqlSchema.set(
24 graphqlVersion,
25 readCompressedJsonFileFallback(`src/graphql/data/schema-${graphqlVersion}.json`)
26 )
27 }
28 return graphqlSchema.get(graphqlVersion)[type]
29}
30
31export function getGraphqlChangelog() {
32 if (!changelog.has('schema')) {

Callers 2

getServerSidePropsFunction · 0.90
graphql.jsFile · 0.90

Calls 2

getGraphqlVersionFunction · 0.85

Tested by

no test coverage detected