yireo/magento2-webp2-graph-ql

Add GraphQL support to Yireo Webp2 for Magento 2

Installs: 200

Dependents: 0

Suggesters: 1

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Type:magento2-module

1.0.4 2024-06-20 07:39 UTC

This package is auto-updated.

Last update: 2024-10-20 08:27:59 UTC


README

Magento 2 module for extending Yireo Webp2 with GraphQL support

Installation

composer require yireo/magento2-webp2-graph-ql
bin/magento module:enable Yireo_Webp2GraphQl

Usage in GraphQL

For every regular image URL, append a _webp variant to your query:

query {
  products(search:"a", pageSize: 1){
    items {
      sku
      name
      media_gallery {
        url
        url_webp
      }
    }
  }
}