Home > @vsf-enterprise/commercetools-api > Context > extendQuery

# Context.extendQuery() method

Helper function for handling default and custom queries

Signature:

extendQuery<Type extends Record<string, ContextQuery>, Key extends keyof Type>(customQuery: CustomQuery, queries: Type): Record<Key, ContextQuery>;

# Parameters

Parameter Type Description
customQuery CustomQuery custom query to be used instead of the default query
queries Type default queries and variables

Returns:

Record<Key, ContextQuery>

Resolved queries