Hello guys,
I'm building a multi language website with Prismic and Gridsome. I'm having trouble with fetching the data in other languages then my default language.
This is my query in the Prismic graphql editor:
query{
allProducts(lang:"en-us"){
edges{
node{
title
image
_meta{
uid
lang
uid
}
}
}
}
}
and this returns the data in that language.
This is the query on my local machine:
query {
allPrismicProduct(filter: { lang: { eq: "en-us" } }) {
edges {
node {
id
lang
data {
title
body
price
image {
url
}
}
}
}
}
}
And it returns an empty array with no data.
What am i doing wrong?
Thanks for the help!