Files
web/packages/trpc/lib/graphql/Query/ResolveEntry.graphql.ts
Joakim Jäderberg e9bd159e98 Merged in chore/replace-graphql-tag/loader (pull request #3096)
Use turbopack for dev builds.
Remove graphql-tag/loader, replaced by gql`` tag literals instead.



Approved-by: Linus Flood
2025-11-07 12:33:17 +00:00

129 lines
2.5 KiB
TypeScript

import { gql } from "graphql-tag"
import { SystemFragment } from "../Fragments/SystemFragment.graphql"
export const EntryByUrlBatch1 = gql`
query EntryByUrlBatch1($locale: String!, $url: String!) {
all_account_page(where: { url: $url }, locale: $locale) {
items {
system {
...SystemFragment
}
}
total
}
all_collection_page(where: { url: $url }, locale: $locale) {
items {
system {
...SystemFragment
}
}
total
}
all_content_page(where: { url: $url }, locale: $locale) {
items {
system {
...SystemFragment
}
}
total
}
all_current_blocks_page(where: { url: $url }, locale: $locale) {
items {
system {
...SystemFragment
}
}
total
}
all_loyalty_page(where: { url: $url }, locale: $locale) {
items {
system {
...SystemFragment
}
}
total
}
all_hotel_page(where: { url: $url }, locale: $locale) {
items {
system {
...SystemFragment
}
}
total
}
}
${SystemFragment}
`
export const EntryByUrlBatch2 = gql`
query EntryByUrlBatch2($locale: String!, $url: String!) {
all_destination_overview_page(where: { url: $url }, locale: $locale) {
items {
system {
...SystemFragment
}
}
total
}
all_destination_country_page(where: { url: $url }, locale: $locale) {
items {
system {
...SystemFragment
}
}
total
}
all_destination_city_page(where: { url: $url }, locale: $locale) {
items {
system {
...SystemFragment
}
}
total
}
all_start_page(where: { url: $url }, locale: $locale) {
items {
system {
...SystemFragment
}
}
total
}
all_campaign_page(where: { url: $url }, locale: $locale) {
items {
system {
...SystemFragment
}
}
total
}
all_campaign_overview_page(where: { url: $url }, locale: $locale) {
items {
system {
...SystemFragment
}
}
total
}
}
${SystemFragment}
`
export const EntryByUrlBatch3 = gql`
query EntryByUrlBatch3($locale: String!, $url: String!) {
all_promo_campaign_page(where: { url: $url }, locale: $locale) {
items {
system {
...SystemFragment
}
}
total
}
}
${SystemFragment}
`