web: remove redundant on self wrapping in queries and add typename

This commit is contained in:
2026-05-19 17:41:51 +02:00
parent 0c5a9876d6
commit f91c67f526
6 changed files with 42 additions and 48 deletions
@@ -6,14 +6,13 @@ import { PageContent } from "@/components/general/PageContent";
const AssociationIndexDefinition = graphql(`
fragment AssociationIndex on AssociationIndex {
... on AssociationIndex {
title
seoTitle
searchDescription
lead
body {
...Blocks
}
__typename
title
seoTitle
searchDescription
lead
body {
...Blocks
}
}
`);
@@ -6,14 +6,13 @@ import { PageHeader } from "@/components/general/PageHeader";
const ContactIndexDefinition = graphql(`
fragment ContactIndex on ContactIndex {
... on ContactIndex {
title
seoTitle
searchDescription
lead
body {
...Blocks
}
__typename
title
seoTitle
searchDescription
lead
body {
...Blocks
}
}
`);
+3 -4
View File
@@ -14,10 +14,9 @@ import { NewsList } from "@/components/news/NewsList";
const HomeFragmentDefinition = graphql(`
fragment Home on HomePage {
... on HomePage {
featuredEvents {
id
}
__typename
featuredEvents {
id
}
}
`);
+11 -12
View File
@@ -6,18 +6,17 @@ import { SponsorList } from "@/components/sponsor/SponsorList";
const SponsorsPageFragmentDefinition = graphql(`
fragment SponsorsPage on SponsorsPage {
... on SponsorsPage {
title
seoTitle
searchDescription
lead
body {
...Blocks
}
sponsors {
... on SponsorBlock {
...Sponsor
}
__typename
title
seoTitle
searchDescription
lead
body {
...Blocks
}
sponsors {
... on SponsorBlock {
...Sponsor
}
}
}
+7 -8
View File
@@ -6,14 +6,13 @@ import { VenueList } from "@/components/venues/VenueList";
const VenueIndexDefinition = graphql(`
fragment VenueIndex on VenueIndex {
... on VenueIndex {
title
seoTitle
searchDescription
lead
body {
...Blocks
}
__typename
title
seoTitle
searchDescription
lead
body {
...Blocks
}
}
`);
@@ -7,14 +7,13 @@ import { VenueList } from "@/components/venues/VenueList";
const VenueRentalIndexDefinition = graphql(`
fragment VenueRentalIndex on VenueRentalIndex {
... on VenueRentalIndex {
title
seoTitle
searchDescription
lead
body {
...Blocks
}
__typename
title
seoTitle
searchDescription
lead
body {
...Blocks
}
}
`);