feat: Graphql queries and TRPC route setup for Hotel Page Component

This commit is contained in:
Chuma McPhoy
2024-06-26 15:47:37 +02:00
parent 1bd65f77ac
commit 0d8c29bd01
8 changed files with 75 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
query GetHotelPage($locale: String!, $uid: String!) {
hotel_page(locale: $locale, uid: $uid) {
hotel_page_id
url
title
}
}

View File

@@ -33,4 +33,12 @@ query ResolveEntryByUrl($locale: String!, $url: String!) {
}
total
}
all_hotel_page(where: { url: $url }, locale: $locale) {
items {
system {
...System
}
}
total
}
}