Hi There.
I have created a new project with the latest version of gatsby
, gatsby-strapi-plugin
and strapi
itself.
I have added the configuration for strapi to gatsby-config.js
{
resolve: `gatsby-source-strapi`,
options: {
apiURL: `http://localhost:1337`,
queryLimit: 1000, // Default to 100
singleTypes: [
{
name: 'homepage',
api: { qs: { _locale: `all` } }
}
]
},
},
I have a SINGLE TYPE called homepage
with an title
and localization enabled.
However querying strapi with graphql only returns the english title and not the other locales which is defined
query MyQuery {
allStrapiHomepage {
edges {
node {
id
Title
locale
localizations {
locale
}
}
}
}
}
returns:
{
"data": {
"allStrapiHomepage": {
"edges": [
{
"node": {
"id": "Homepage_1",
"Title": "xxx Track Day xxx",
"locale": "en",
"localizations": [
{
"locale": "da",
},
{
"locale": "sv-SE",
}
]
}
}
]
}
},
"extensions": {}
}
Is this the intended behaviour or am I missing something?