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
This commit is contained in:
@@ -1,64 +0,0 @@
|
||||
#import "../../Fragments/System.graphql"
|
||||
|
||||
#import "../../Fragments/CampaignPage/Hero.graphql"
|
||||
|
||||
query GetCampaignPagesByHotelUid(
|
||||
$locale: String!
|
||||
$hotelPageUid: String!
|
||||
$today: DateTime!
|
||||
) {
|
||||
all_campaign_page(
|
||||
where: {
|
||||
OR: [
|
||||
{ included_hotels: { list_1: { hotel_page: { uid: $hotelPageUid } } } }
|
||||
{ included_hotels: { list_2: { hotel_page: { uid: $hotelPageUid } } } }
|
||||
]
|
||||
AND: [
|
||||
{ OR: [{ startdate: null }, { startdate_lte: $today }] }
|
||||
{ OR: [{ enddate: null }, { enddate_gte: $today }] }
|
||||
]
|
||||
}
|
||||
locale: $locale
|
||||
limit: 100
|
||||
) {
|
||||
items {
|
||||
heading
|
||||
url
|
||||
sort_order
|
||||
card_content {
|
||||
heading
|
||||
image
|
||||
text
|
||||
}
|
||||
...Hero_CampaignPage
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetCampaignPagesByHotelUidRefs(
|
||||
$locale: String!
|
||||
$hotelPageUid: String!
|
||||
$today: DateTime!
|
||||
) {
|
||||
all_campaign_page(
|
||||
where: {
|
||||
OR: [
|
||||
{ included_hotels: { list_1: { hotel_page: { uid: $hotelPageUid } } } }
|
||||
{ included_hotels: { list_2: { hotel_page: { uid: $hotelPageUid } } } }
|
||||
]
|
||||
AND: [
|
||||
{ OR: [{ startdate: null }, { startdate_lte: $today }] }
|
||||
{ OR: [{ enddate: null }, { enddate_gte: $today }] }
|
||||
]
|
||||
}
|
||||
locale: $locale
|
||||
limit: 100
|
||||
) {
|
||||
items {
|
||||
...CampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user