webonyx / graphql-php

PHP implementation of the GraphQL specification based on the reference implementation in JavaScript
https://webonyx.github.io/graphql-php
MIT License
4.63k stars 561 forks source link

Serialize valid `\BackedEnum` values in `GraphQL\Type\Definition\PhpEnumType` #1604

Closed spawnia closed 2 weeks ago

spawnia commented 2 weeks ago

This allows the resolvers to return the raw enum values and automatically takes care of converting them.