Any way to get *non* localized data from the REST API. #139
-
Hey guys, I have a bunch of localized fields but there's one particular query where I need to get all available translations. The page Currently the only way I can see to do that is loop over all available locales and query for each document of that locale to find out if it exists. Is there any way for me to do that directly via the API? I couldn't see anything in the docs. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @richardvanbergen — We do have a way to do this!
Somehow that went un-documented. It only works via the REST API for now, because of GraphQL's strongly typed nature. Enabling this in GraphQL would mean that we have to make a whole other set of queries, which is possible, but likely lower on our priorities list. We will get our docs updated ASAP. Give it a shot! |
Beta Was this translation helpful? Give feedback.
Hey @richardvanbergen —
We do have a way to do this!
?locale=*
Somehow that went un-documented. It only works via the REST API for now, because of GraphQL's strongly typed nature. Enabling this in GraphQL would mean that we have to make a whole other set of queries, which is possible, but likely lower on our priorities list.
We will get our docs updated ASAP. Give it a shot!