Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Mobile Buy SDK android java query product details add variation id field to images
Storefront.QueryRootQuery query = Storefront.query(rootQuery -> rootQuery
.node(new ID(id), nodeQuery -> nodeQuery
.onProduct(productQuery -> productQuery
.title()
.description()
.priceRange(priceRangeQuery -> priceRangeQuery
.minVariantPrice(minVariantPriceQuery -> minVariantPriceQuery
.amount()
.currencyCode()
)
.maxVariantPrice(maxVariantPriceQuery -> maxVariantPriceQuery
.amount()
.currencyCode()
)
)
.images(arg -> arg.first(10), imageConnectionQuery -> imageConnectionQuery
.edges(imageEdgeQuery -> imageEdgeQuery
.node(imageQuery -> imageQuery
.id()
.src()
)
)
)
.variants(arg -> arg.first(10), variantConnectionQuery -> variantConnectionQuery
.edges(variantEdgeQuery -> variantEdgeQuery
.node(productVariantQuery -> productVariantQuery
.title()
.sku()
.weight()
.weightUnit()
.availableForSale()
.selectedOptions(selectedOptionQuery -> selectedOptionQuery
.name()
.value()
)
.image(image -> image
.originalSrc()
.altText()
)
.product(product -> product
.options(optionQuery -> optionQuery
.name()
.values()
)
.images(arg -> arg.first(20), imageConnectionQuery -> imageConnectionQuery
.edges(imageEdgeQuery -> imageEdgeQuery
.node(imageQuery -> imageQuery
.src()
.id()
.altText()
)
)
)
)
)
)
)
)
)
);
Hi Franceajmedical,
I'm unsure what exactly the issue is here exactly?
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog