UNPKG

@gridsome/vue-remark

Version:
33 lines (29 loc) 589 B
const { GraphQLInt, GraphQLString, GraphQLEnumType, GraphQLObjectType } = require('gridsome/graphql') const HeadingType = new GraphQLObjectType({ name: 'VueRemarkHeading', fields: { depth: { type: GraphQLInt }, value: { type: GraphQLString }, anchor: { type: GraphQLString } } }) const HeadingLevels = new GraphQLEnumType({ name: 'VueRemarkHeadingLevels', values: { h1: { value: 1 }, h2: { value: 2 }, h3: { value: 3 }, h4: { value: 4 }, h5: { value: 5 }, h6: { value: 6 } } }) module.exports = { HeadingType, HeadingLevels }