Relative Content

Tag Archive for react-nativegraphqlstrapi

Graphql query for two language

i develop one app in RN, but I decided to translate in two languages. I use i18n-js.
I also use i18n in strapi, and I duplicated some records in bakend.
I create a LocalizationProvider, which catch the selected language. Text in UI is translating, but the content from bakend not. I change graphql query: before it was [text]( query getCategories {
categories {
data {
id
attributes {
Name
Icon {
data {
attributes {
url
}
}
}
}
}
}
}) , now i use locale query getCategories($locale: String!) { categories(locale: $locale) { data { id attributes { Name Icon { data { attributes { url } } } } } } }, but Response not successful: Received status code 400. I test only this query { categories(locale: "bg") { data { id attributes { Name Icon { data { attributes { url } } } } } } } in graphql playground recive a result.
I’m asking for help

Simple GraphQl query + Strapi

I work on react-native app with Strapi bakend.
Somebody cant help me with , Graphql query . This simple query give me all bookings: