Efficiently fetching translations for metafields

It seems that it is only possible to fetch translations for one individual metafield at a time, as opposed to getting them when paginating through hundreds of metafields at a time, which is very inefficient.

Is there any way to do this or perhaps something on the roadmap to resolve it?

1 Like

Hey @kalen,

Would a translatableResources - GraphQL Admin query work?

query {
  translatableResources(first: 5, resourceType: METAFIELD) {
    edges {
      node {
        resourceId
        translatableContent {
          key
          value
          digest
          locale
        }
      }
    }
  }
}

Sweet thanks! I’m not sure how I missed that.

1 Like