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.

preferredLocationId ( ID )

The identifier of the customer's preferred location.

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.

preferredLocationId ( ID )

The identifier of the customer's preferred location.

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.

preferredLocationId ( ID )

The identifier of the customer's preferred location.