Skip to content

Commit

Permalink
Fix instancePrefix option
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Dec 7, 2022
1 parent 3b540ec commit 05ef3ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/hooks/sourceNodes/createTypes/site/DatoCmsGlobalSeo.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ const resolveUsingAttribute = (key, definition) => ({
},
});

module.exports = ({ actions, schema }) => {
module.exports = ({ actions, schema, generateType }) => {
actions.createTypes([
schema.buildObjectType({
name: 'DatoCmsGlobalSeo',
name: generateType('GlobalSeo'),
extensions: { infer: false },
fields: {
siteName: resolveUsingAttribute('site_name', { type: 'String' }),
Expand All @@ -22,7 +22,7 @@ module.exports = ({ actions, schema }) => {
type: 'String',
}),
fallbackSeo: {
type: 'DatoCmsSeoField',
type: generateType('SeoField'),
resolve: node => {
const result = camelizeKeys(node.fallback_seo);
return result;
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/sourceNodes/createTypes/site/DatoCmsSite.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = ({ actions, schema, generateType }) => {
type: 'Boolean',
}),
globalSeo: {
type: 'DatoCmsGlobalSeo',
type: generateType('GlobalSeo'),
args: {
locale: `String`,
fallbackLocales: `[String!]`,
Expand Down

0 comments on commit 05ef3ea

Please sign in to comment.