Hi all!
I am trying to retrieve orders in multiple languages, for now it is possible to retrieve it in default langauge using:
'''
query {
products(first:1, after:null) {
edges {
cursor
node {
title
description
}
}
}
}
'''
But I can not seem to get it working for a different language, I have tried a lot and read about @inContext, but when I use that I get the error:
'''
query @inContext(language:"DE") {
products(first:1, after:null) {
edges {
cursor
node {
title
description
}
}
}
}
'''
{'errors': [{'message': 'Directive @inContext is not defined', 'locations': [{'line': 2, 'column': 7}], 'path': ['query'], 'extensions': {'code': 'undefinedDirective', 'directiveName': 'inContext'}}]}
I read somewhere that @inContext only works for Storefront API, is this true? And if so, how can I select a different language for my use case?
Thanks in advance!