refactor: update gatsby schema, remove customization + use inferrable type (#65857)

This commit is contained in:
Oliver Eyton-Williams
2026-03-03 10:48:53 +01:00
committed by GitHub
parent 3250669a2b
commit e902fd270f
11 changed files with 581 additions and 490 deletions
@@ -26,20 +26,6 @@ const idToFilepath = new Map();
// recently overwritten files
const idToOverwrittenFile = new Map();
exports.createSchemaCustomization = ({ actions }) => {
const { createTypes } = actions;
const typeDefs = `
type QuizQuestion {
text: String!
distractors: [String!]!
answer: String!
audioId: String
transcript: String
}
`;
createTypes(typeDefs);
};
exports.sourceNodes = function sourceChallengesSourceNodes(
{ actions, reporter, createNodeId, createContentDigest },
pluginOptions