Mobile Buy SDK android java query product details add variation id field to images

Mobile Buy SDK android java query product details add variation id field to images

franceajmedical
Visitor
2 0 1

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()
)
)
)
)

)
)
)
)
)
);

 

Reply 1 (1)

Liam
Community Manager
3108 341 880

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