API version: unstable
API version: 2021-07 Release candidate
API version: 2021-04 Latest
API version: 2021-01
API version: 2020-10
API version: 2020-07
API version: 2020-04
API version: 2020-01 Unsupported
API version: 2019-10 Unsupported

inContext

Contextualizes data based on the additional information provided by the directive. For example, you can use the @inContext(country: CA) directive to query the price of a product in a storefront within the context of Canada.

Locations

  • QUERY
  • MUTATION

Arguments

Argument Description
country ( CountryCode )

The country code for context. For example, CA.

Contextualizes data based on the additional information provided by the directive. For example, you can use the @inContext(country: CA) directive to query the price of a product in a storefront within the context of Canada.

Locations

  • QUERY
  • MUTATION

Arguments

Argument Description
country ( CountryCode )

The country code for context. For example, CA.