mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-08 12:57:45 +00:00
18 lines
483 B
JavaScript
18 lines
483 B
JavaScript
// I would rather have these in their respective plugins folders, but Gatsby
|
|
// didn't like having MarkdownRemarkFields implemented twice
|
|
exports.createSchemaCustomization = ({ actions }) => {
|
|
const { createTypes } = actions;
|
|
const typeDefs = `
|
|
type MarkdownRemarkFields implements Node {
|
|
inlineCount: Int
|
|
headingsWithId: [HeadingsWithId]
|
|
}
|
|
type HeadingsWithId {
|
|
value: String!
|
|
depth: Int!
|
|
slug: String!
|
|
}
|
|
`;
|
|
createTypes(typeDefs);
|
|
};
|