mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-08 12:57:45 +00:00
Fix errors in query, fix line-ending problems
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
// 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);
|
||||
|
||||
Reference in New Issue
Block a user