Adjust fetchers to the latest Spree SDK interface

This commit is contained in:
tniezg
2021-08-20 12:29:27 +02:00
parent a191e28df7
commit 3d2ee58c4d
5 changed files with 5 additions and 6 deletions

View File

@@ -58,6 +58,7 @@ export default function getAllProductPathsOperation({
const variables: SpreeSdkVariables = {
methodPath: 'products.list',
arguments: [
{},
{
fields: {
product: 'slug',

View File

@@ -45,6 +45,7 @@ export default function getAllProductsOperation({
const variables: SpreeSdkVariables = {
methodPath: 'products.list',
arguments: [
{},
{
include: 'variants,images,option_types,variants.option_values',
per_page: first,

View File

@@ -52,6 +52,7 @@ export default function getProductOperation({
methodPath: 'products.show',
arguments: [
getProductVariables.slug,
{},
{
include: 'variants,images,option_types,variants.option_values',
},