sanity-io / sanity-plugin-internationalized-array

A plugin to register array fields with a custom input component to store field values in multiple languages, queryable by using the language ID as an array `_key`.
MIT License
42 stars 10 forks source link

[QUESTION] is that possible to filter and return only the right language from backend with GraphQL? #16

Closed LeonardoRick closed 1 year ago

LeonardoRick commented 1 year ago

The documentations says

Using GROQ filters you can query for a specific language key like so:

*[_type == "person"] { "greeting": greeting[_key == "en"][0].value }

Is that possible to do something similar with GraphQL?

SimeonGriggs commented 1 year ago

Unfortunately, not at this time: https://www.sanity.io/docs/graphql#4c51bb8dc529