feat: Graphql queries and TRPC route setup for Hotel Page Component
This commit is contained in:
7
lib/graphql/Query/HotelPage.graphql
Normal file
7
lib/graphql/Query/HotelPage.graphql
Normal file
@@ -0,0 +1,7 @@
|
||||
query GetHotelPage($locale: String!, $uid: String!) {
|
||||
hotel_page(locale: $locale, uid: $uid) {
|
||||
hotel_page_id
|
||||
url
|
||||
title
|
||||
}
|
||||
}
|
||||
@@ -33,4 +33,12 @@ query ResolveEntryByUrl($locale: String!, $url: String!) {
|
||||
}
|
||||
total
|
||||
}
|
||||
all_hotel_page(where: { url: $url }, locale: $locale) {
|
||||
items {
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
total
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user