Strawberry GraphQL @ 0.266.0

Released

This release adds support for custom names in enum values using the name parameter in strawberry.enum_value .

This allows you to specify a different name for an enum value in the GraphQL schema while keeping the original Python enum member name. For example:

@strawberry.enum
class IceCreamFlavour(Enum):
    VANILLA = "vanilla"
    CHOCOLATE_COOKIE = strawberry.enum_value("chocolate", name="chocolateCookie")

This will produce a GraphQL schema with the custom name:

enum IceCreamFlavour {
    VANILLA
    chocolateCookie
}

Releases contributed by @patrick91 via #3841