generate schema

This commit is contained in:
Zotov Ivan Yuryevich
2026-04-08 22:33:20 +03:00
parent 8b100c18b7
commit d0ff2907cb
3 changed files with 337 additions and 20 deletions

View File

@@ -1,10 +1,11 @@
import gql from "graphql-tag";
import gql from 'graphql-tag'
export const homePageDocument = gql`
query HomePage {
query HomePageQuery {
homePage {
sections {
... on ComponentSectionsHomeHero {
id
title
description
badge
@@ -15,8 +16,66 @@ export const homePageDocument = gql`
}
}
... on ComponentSectionsServices {
id
title
description
cards {
id
title
description
icon {
value
}
color {
value
}
category {
slug
}
}
}
... on ComponentSectionsSolutions {
id
title
description
cards {
id
title
description
icon {
value
}
category {
slug
}
}
}
... on ComponentSectionsCases {
id
title
description
cards {
id
title
description
pretitle
badge
color {
value
}
icon {
value
}
}
}
... on ComponentSectionsAbout {
id
title
description
partners(pagination: { pageSize: 100 }) {
id
value
}
cards {
id
title
@@ -27,12 +86,9 @@ export const homePageDocument = gql`
icon {
value
}
category {
slug
}
}
}
}
}
}
`;
`