graphql-go / graphql

An implementation of GraphQL for Go / Golang
MIT License
9.86k stars 838 forks source link

u- return alias field #630

Open wenj91 opened 2 years ago

wenj91 commented 2 years ago

query:

{
    hello{
        idAlias:id
        id
        world
    }
}

return:

map[string]interface{} {
    "idAlias": 1,
    "id": 2,
    "world": "world"
}

before result:

{
    "idAlias": 2,
    "id": 2,
    "world": "world"
}

expect:

{
    "idAlias": 1,
    "id": 2,
    "world": "world"
}

this PR fix this issue

coveralls commented 2 years ago

Coverage Status

Coverage decreased (-0.02%) to 91.971% when pulling 424d61d4ff28d77b5af929c9d4acd479975ac28c on wenj91:master into f02a1c961028d3ba7ac6bb22eaa09b31a2cb53dd on graphql-go:master.

astudnev commented 2 years ago

I met with the same issue... any plans to merge it?