Ideas

Give us your best ideas!

 

Merged idea

This idea has been merged into another idea. To comment or vote on this idea, please visit PL-I-479 Storefront GraphQL: resolve pointers, custom data.

Enhance Litium Storefront GraphQL’s PointerMediaImageItem and IImageItem to return custom image fields, allowing better identification and categorization of images. Merged

Currently, PointerMediaImageItem and IImageItem in Litium Storefront GraphQL only return a limited set of image properties:

  • height

  • width

  • alt

  • filename

  • url

fragment Image on IImageItem {

dimension

{

height

width

}

alt

filename

url

}

While these basic fields are useful, many projects rely on custom image fields to identify image types, classifications, and other metadata. For example, in our case, we use additional fields like:

  • ImageType (e.g., product image, lifestyle image, logo)

  • UsageContext (e.g., mobile, desktop, print)

  • DisplayOrder

  • Cloudinarybild

  • Camera angle

Extending the GraphQL response to include custom image fields would eliminate the need for separate API calls to fetch extended metadata. This enhancement would simplify development, improve performance, and provide more flexible, enriched media handling directly within the Storefront GraphQL queries.


  • kunjahamed P
  • Mar 3 2025