Fetch published global countries and locations

This commit is contained in:
2021-10-04 13:07:38 +02:00
parent b1e9c7da0c
commit 7b165471d3

View File

@@ -28,7 +28,7 @@
export async function load ({ page, session, fetch, context }) { export async function load ({ page, session, fetch, context }) {
const res = await fetchAPI(` const res = await fetchAPI(`
query { query {
location { location (filter: { status: { _eq: "published" }}) {
name name
slug slug
coordinates coordinates
@@ -48,7 +48,7 @@
} }
} }
country { country (filter: { status: { _eq: "published" }}) {
name name
slug slug
flag { flag {