Yireo_ByAttributeGraphQl
PHP
8.1 - 8.4
Magento
2.4.7 | 2.4.8
CSP
Yes
This Magento 2 extension adds a GraphQL endpoint for accessing product attributes via GraphQL. This requires at least Magento 2.3 or higher.
To install this module, run:
composer require yireo/magento2-byattribute-graph-ql
./bin/magento module:enable Yireo_ByAttributeGraphQl
Sample GraphQL queries
Here are some sample GraphQL queries to show the usage of this extension:
{ productAttribute(code:"material") { id code label default_value options { value label product_count } } }
Or if you want to return less information (and include a category filter):
{ productAttribute(code:"color", category_id: 42) { id options { value } } }
TODO
- Cache vital parts of product count
- Refactor
ProductCounterand split it up in smaller classes
Current status
WARNING: This module has no releases yet. If you want to use it, make sure to add the version
@dev
to the composer command.
Support
For getting support, create an Issue under the following project URL:
https://github.com/yireo/Yireo_ByAttributeGraphQl
Composer details
Magento module name
Yireo_ByAttributeGraphQlComposer name
yireo/magento2-byattribute-graph-qlComposer version
No release yet
Default branch
master
Requirements
magento/framework: ^100.0|^101.0|^102.0|^103.0
magento/module-eav: ^100.0|^101.0|^102.0
magento/module-catalog: ^101.0|^102.0|^103.0|^104.0
magento/module-graph-ql: ^100.3
php: >=8.2 <8.6
Releases
Changelog
[0.1.1] - 29 July 2020
Added
- Magento 2.4 compatibility
[0.1.0] - Undocumented
Last modified: October 17, 2026