Skip to content

GraphQL returns enum key instead of value #6185

Closed
@JohnnyLouweret

Description

@JohnnyLouweret

version 3.2.13

I'm not sure if its a bug but it does look like one.

Our api-platform rest api returns the value of enums while the graphql side returns the keys. This seems very weird and no idea how to change it.

case ENGLISH = 'EN';

GET users/1
locale: 'en'
query getUser {
  user(id: "/users/1") {
    locale
  }
}

locale: 'ENGLISH'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions