我想支持多种语言:
{
products(first:10,) {
edges {
node {
title
# Include other fields to retrieve within translations
}
}
}
}
我想要乌尔都语的标题回复。我正在使用 admin/api/2023-07/graphql.json
我相信这是使用 @inContext 装饰器完成的。
query getProducts @inContext(language: UR) {
products(first:10) {
edges {
node {
title
# Include other fields to retrieve within translations
}
}
}
}