(version, type)
| 18 | }) |
| 19 | |
| 20 | export 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 | |
| 31 | export function getGraphqlChangelog() { |
| 32 | if (!changelog.has('schema')) { |
no test coverage detected