import { ApolloQueryResult } from '@apollo/client/core' ; import { CustomQuery } from '@vue-storefront/core' ; import { ProductReviewRatingsMetadataQuery } from '../../types/GraphQL' ; import productReviewRatingsMetadata from './productReviewRatingsMetadata' ; import { Context } from '../../types/context' ; export default async ( context , customQuery = { productReviewRatingsMetadata : 'productReviewRatingsMetadata' } ) : Promise < ApolloQueryResult < ProductReviewRatingsMetadataQuery > > => { const { productReviewRatingsMetadata : productReviewRatingsMetadataGQL } = context . extendQuery ( customQuery , { productReviewRatingsMetadata : { query : productReviewRatingsMetadata , } , } ) ; return context . client . query < ProductReviewRatingsMetadataQuery > ( { query : productReviewRatingsMetadataGQL . query , } ) ; } ;