import { getSubgraphSdk } from "../utils/graphql";
export async function searchProducts(subgraphUrl, queryVars = {}) {
    const subgraphSdk = getSubgraphSdk(subgraphUrl);
    const { productV1Products = [] } = await subgraphSdk.searchProductsQuery({
        ...queryVars
    });
    return productV1Products;
}
//# sourceMappingURL=subgraph.js.map