Fetch published global countries and locations
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user