PHPackages                             dannegwork/attribute-of-type-select-graphql-magento2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. dannegwork/attribute-of-type-select-graphql-magento2

ActiveMagento2-module[API Development](/categories/api)

dannegwork/attribute-of-type-select-graphql-magento2
====================================================

GraphQL plugin that accesses custom attributes. To be used on Magento2.4.\* setup

1.0.0(4y ago)126OSL-3.0PHPPHP &gt;=7.4

Since Sep 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/dannegwork/attribute-of-type-select-graphql-magento2)[ Packagist](https://packagist.org/packages/dannegwork/attribute-of-type-select-graphql-magento2)[ Docs](https://www.danneg.work)[ RSS](/packages/dannegwork-attribute-of-type-select-graphql-magento2/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Catalog GRAPHQL plugin for Magento2
===================================

[](#catalog-graphql-plugin-for-magento2)

This is a Magento2 plugin with the purpose of customizing the output for the select/dropdown Magento2 catalog attributes.

Functionality
-------------

[](#functionality)

In a clean Magento2 project, the GraphQL endpoint will display the numeric value of the option id for the the single-value / select / dropdown attribute (instead of the textual option). This repository will allow you to:

1. Access attribute values based on the entity ID &amp; store view
2. Access any select/dropdown/filterable attribute in a simple JSON format The output of the GraphQL query will be in the format:

`:{ "code":"", "value":"" }`

### Exceptions

[](#exceptions)

The dropdown attributes which have a back-end model predefined (are of type "varchar") are not affected.

Requirements
------------

[](#requirements)

This integration has been developed on Magento 2.4.3

Setup
-----

[](#setup)

If you wish to use this simple flow for customizing any Magento2 select attribute, please install the repository as is:

`composer require dannegwork/attribute-of-type-select-graphql-magento2`

`bin/magento module:enable DannegWork_CatalogGraphql`

`bin/magento setup:upgrade`

### Sample GraphQL Request

[](#sample-graphql-request)

The provided QL works on a Magento 2.4.3 setup, deployed with sample data:

`{ products (search: "fusion", pageSize: 5) { items { uid name sku color { code value } format { code value } } } }`

Color &amp; format are select fields.

Contact me!
-----------

[](#contact-me)

If you have any question, just contact me at

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1754d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/89669a902ad5ae0993e382c3038e3e1e338771c3c15598ad2cddb06d314901d8?d=identicon)[dannegwork](/maintainers/dannegwork)

---

Top Contributors

[![dannegwork](https://avatars.githubusercontent.com/u/42143313?v=4)](https://github.com/dannegwork "dannegwork (10 commits)")

---

Tags

graphqlmagento2danneg

### Embed Badge

![Health badge](/badges/dannegwork-attribute-of-type-select-graphql-magento2/health.svg)

```
[![Health](https://phpackages.com/badges/dannegwork-attribute-of-type-select-graphql-magento2/health.svg)](https://phpackages.com/packages/dannegwork-attribute-of-type-select-graphql-magento2)
```

###  Alternatives

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8064.7M49](/packages/smile-elasticsuite)[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[elgentos/module-prismicio

Magento 2 - Prismic.io integration

39119.0k3](/packages/elgentos-module-prismicio)[sehrling/elasticsuite-ghost-cleaner

Magento 2 module to delete ghost indices automatically for the Smile Elasticsuite module

17100.8k](/packages/sehrling-elasticsuite-ghost-cleaner)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1860.2k](/packages/myparcelnl-magento)[opengento/module-category-import-export

This module add the capability to import and export the categories from the back-office.

1310.9k2](/packages/opengento-module-category-import-export)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
